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

pull/3558/head
sebres 1 year ago
parent db3b410a60
commit f8622c6f92

@ -664,7 +664,7 @@ class IPAddr(object):
if not match: if not match:
return None return None
ipstr = match.group('IPv4') ipstr = match.group('IPv4')
if ipstr != '': if ipstr is not None and ipstr != '':
return ipstr return ipstr
return match.group('IPv6') return match.group('IPv6')

Loading…
Cancel
Save