Browse Source

fixes IPAddr.searchIP for IPv6 (IPv4 group scanning plain IPv6 is None)

pull/3558/head
sebres 1 year ago
parent
commit
f8622c6f92
  1. 2
      fail2ban/server/ipdns.py

2
fail2ban/server/ipdns.py

@ -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…
Cancel
Save