Fix regexp for IPv6
This commit is contained in:
parent
afe07f9d00
commit
10421cc86a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ same target, doing nothing."""
|
|||
result.content
|
||||
)
|
||||
match = re.match(
|
||||
br'[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}',
|
||||
br'[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}',
|
||||
result.content)
|
||||
if match:
|
||||
ipv6 = match.group(0).decode()
|
||||
|
|
Loading…
Reference in a new issue