Commit 65c1630f authored by Julien Muchembled's avatar Julien Muchembled

Fix stuck connections when hostname resolve fails

This bug could even freeze re6st completely when trying to rejoin the network.
parent bec08ded
...@@ -61,6 +61,7 @@ class Connection(object): ...@@ -61,6 +61,7 @@ class Connection(object):
def open(self, write_pipe, timeout, encrypt, ovpn_args): def open(self, write_pipe, timeout, encrypt, ovpn_args):
self.process = plib.client(self.iface, self.address_list, encrypt, self.process = plib.client(self.iface, self.address_list, encrypt,
'--tls-remote', '%u/%u' % (int(self._prefix, 2), len(self._prefix)), '--tls-remote', '%u/%u' % (int(self._prefix, 2), len(self._prefix)),
'--resolv-retry', '0',
'--connect-retry-max', '3', '--tls-exit', '--connect-retry-max', '3', '--tls-exit',
'--ping-exit', str(timeout), '--ping-exit', str(timeout),
'--route-up', '%s %u' % (plib.ovpn_client, write_pipe), '--route-up', '%s %u' % (plib.ovpn_client, write_pipe),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment