oops. i think it works now

This commit is contained in:
brent s. 2020-05-10 06:10:41 -04:00
parent d52b36251a
commit 4cee007203
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -179,7 +179,7 @@ class TunnelBroker(object):
'{2}').format(str(a), self.iface_name, e))
raise e
try:
self.ipr.route('add', dst = '::', mask = 0, oif = self.iface_idx, family = socket.AF_INET6)
self.ipr.route('add', dst = 'default', oif = self.iface_idx, family = socket.AF_INET6)
logger.debug('Added default route for link {0}.'.format(self.iface_name))
except Exception as e:
logger.error(('Could not add default IPv6 route on link {0}: {1}').format(self.iface_name, e))
@ -201,7 +201,7 @@ class TunnelBroker(object):
except Exception as e:
logger.error('Could not bring down link {0}: {1} (continuing anyways)'.format(self.iface_name, e))
try:
self.ipr.route('del', dst = '::', mask = 0, oif = self.iface_idx, family = socket.AF_INET6)
self.ipr.route('del', dst = 'default', oif = self.iface_idx, family = socket.AF_INET6)
except Exception as e:
logger.error(('Could not remove default IPv6 route on link {0}: '
'{1} (continuing anyways)').format(self.iface_name, e))