Commit 756bda32 authored by Julien Muchembled's avatar Julien Muchembled

Do not fail on messages received from link-local ipv6

parent 1f394dc7
......@@ -428,7 +428,12 @@ class TunnelManager(object):
if address[0] == '::1':
sender = None
else:
try:
sender = utils.binFromIp(address[0])
except socket.error, e:
# inet_pton does not parse '<ipv6>%<iface>'
logging.warning('ignored message from %r (%s)', address, e)
return
if not sender.startswith(self._network):
return
if not msg:
......
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