mirror of https://github.com/fail2ban/fail2ban
fixes IPAddr.searchIP for IPv6 (IPv4 group scanning plain IPv6 is None)
parent
db3b410a60
commit
f8622c6f92
|
@ -664,7 +664,7 @@ class IPAddr(object):
|
|||
if not match:
|
||||
return None
|
||||
ipstr = match.group('IPv4')
|
||||
if ipstr != '':
|
||||
if ipstr is not None and ipstr != '':
|
||||
return ipstr
|
||||
return match.group('IPv6')
|
||||
|
||||
|
|
Loading…
Reference in New Issue