Commit dff26690 authored by Julien Muchembled's avatar Julien Muchembled

Do not fail if OpenVPN calls 'disconnect' hook without having called 'connect' hook previously

parent e79bb78e
......@@ -296,7 +296,7 @@ class TunnelManager(object):
def _ovpn_client_disconnect(self, common_name):
prefix = utils.binFromSubnet(common_name)
self._served.remove(prefix)
self._served.discard(prefix)
def _ovpn_route_up(self, common_name, ip):
self._peer_db.connecting(utils.binFromSubnet(common_name), 0)
......
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