mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-03 08:51:12 -05:00
fixed badly computed large ipv6
This commit is contained in:
parent
6b71f54927
commit
b258f94718
@ -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 n.ip.find('::') > 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]+':*'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user