• Julien Muchembled's avatar
    Do not fail on unexpected 'route_up' notifications from OpenVPN clients · d7d7b425
    Julien Muchembled authored
    This fixes the following error:
    
      TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
      Traceback (most recent call last):
        File "/usr/sbin/re6stnet", line 438, in main
          tunnel_manager.handleTunnelEvent(read_pipe.readline())
        File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 389, in handleTunnelEvent
          m(*args)
        File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 412, in _ovpn_route_up
          self._connection_dict[prefix].connected()
        File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 76, in connected
          i = self._retry - 1
    
    What happened is probably that a route_up notification was received just before
    killing/recreating the connection for the same node, and then process twice
    the same OpenVPN notification: in this case, the first was for a previous
    connection and should have been ignored.
    d7d7b425
Name
Last commit
Last update
daemon Loading commit data...
debian Loading commit data...
demo Loading commit data...
docs Loading commit data...
re6st Loading commit data...
simulation Loading commit data...
.gitignore Loading commit data...
CHANGES Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
re6st-conf Loading commit data...
re6st-registry Loading commit data...
re6stnet Loading commit data...
re6stnet.spec Loading commit data...
setup.py Loading commit data...