There was an error while loading. Please reload this page.
2 parents 4f4f05d + 9273b1e commit 8c27633Copy full SHA for 8c27633
1 file changed
nac_sanitizer/engine/ip_scanner.py
@@ -36,6 +36,8 @@ def _is_ipv4(value: str) -> bool:
36
37
def _is_ipv6(value: str) -> bool:
38
"""Check if a string looks like an IPv6 address or prefix."""
39
+ if ":" not in value:
40
+ return False
41
match = _IPV6_PATTERN.match(value)
42
if not match:
43
return False
0 commit comments