This commit is contained in:
Nicolas Coevoet 2013-10-18 00:01:09 +02:00
parent b258f94718
commit 2dde337495

View File

@ -207,7 +207,7 @@ def getBestPattern (n):
if host.startswith('gateway/web/freenode/ip.') or host.startswith('gateway/tor-sasl/') or host.startswith('unaffiliated/'): if host.startswith('gateway/web/freenode/ip.') or host.startswith('gateway/tor-sasl/') or host.startswith('unaffiliated/'):
ident = '*' ident = '*'
if n.ip != None: if n.ip != None:
if len(n.ip.split('::')) > 4: if len(n.ip.split(':')) > 4:
# large ipv6 # large ipv6
a = n.ip.split(':') a = n.ip.split(':')
m = a[0]+':'+a[1]+':'+a[2]+':'+a[3]+':*' m = a[0]+':'+a[1]+':'+a[2]+':'+a[3]+':*'