mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-01 16:01:06 -05:00
..
This commit is contained in:
parent
b258f94718
commit
2dde337495
@ -207,7 +207,7 @@ def getBestPattern (n):
|
||||
if host.startswith('gateway/web/freenode/ip.') or host.startswith('gateway/tor-sasl/') or host.startswith('unaffiliated/'):
|
||||
ident = '*'
|
||||
if n.ip != None:
|
||||
if len(n.ip.split('::')) > 4:
|
||||
if len(n.ip.split(':')) > 4:
|
||||
# large ipv6
|
||||
a = n.ip.split(':')
|
||||
m = a[0]+':'+a[1]+':'+a[2]+':'+a[3]+':*'
|
||||
|
Loading…
x
Reference in New Issue
Block a user