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

pull/3558/head
sebres 2023-08-23 16:26:00 +02:00
parent db3b410a60
commit f8622c6f92
1 changed files with 1 additions and 1 deletions

View File

@ -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')