From e589e00100ffdb18d34540d14cdafec1874e6321 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 18 May 2020 08:15:40 -0400 Subject: [PATCH] heh erm. whoop --- utils/he_ipv6/tunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/he_ipv6/tunnel.py b/utils/he_ipv6/tunnel.py index 3f47ad4..a48e153 100644 --- a/utils/he_ipv6/tunnel.py +++ b/utils/he_ipv6/tunnel.py @@ -137,7 +137,7 @@ class Assignment(object): # We need to do some funky things here. Netaddr doesn't have an .exploded(). _base = ipaddress.IPv6Address(str(i.ip)) _base = ipaddress.IPv6Address(re.sub(r'(:0000){4}$', r':dead:beef:cafe::', str(_base.exploded))) - _base = re.sub(r':0$', r'', _base) + _base = re.sub(r':0$', r'', str(_base)) logger.debug('Base prefix for {0}: {1}'.format(str(i), _base)) start = '{0}:0'.format(_base) stop = '{0}:ffff'.format(_base)