OSError: illegal IP address string passed to inet_pton

This commit is contained in:
brent s. 2020-05-14 01:19:10 -04:00
parent cb1a877ddc
commit 9a8bae0ba8
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -113,7 +113,8 @@ class TunnelBroker(object):
family = socket.AF_INET6) family = socket.AF_INET6)
logger.debug('Added default route for link {0}.'.format(self.iface_name)) logger.debug('Added default route for link {0}.'.format(self.iface_name))
except Exception as e: except Exception as e:
logger.error(('Could not add default IPv6 route on link {0}: {1}').format(self.iface_name, e)) logger.error(('Could not add default IPv6 route on link {0} with '
'gateway {1}: {2}').format(self.iface_name, self.tun.server.str, e))
ipr.close() ipr.close()
raise e raise e
for assignment in self.tun.assignments: for assignment in self.tun.assignments: