Commit 26f11428 authored by Julien Muchembled's avatar Julien Muchembled

fixup! Fix crash caused by buggy UPnP

parent 9e6ece7a
......@@ -52,7 +52,7 @@ class Forwarder(object):
ip = self.refresh()
try:
socket.inet_aton(ip)
except socket.error:
except (socket.error, TypeError):
ip = ()
return socket.AF_INET, ip and [(ip, str(port or local), proto)
for local, proto, port in self._rules]
......
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