tweak to ignore IPs like "10.0.0.0"

This commit is contained in:
OniriCorpe 2024-01-18 03:46:37 +01:00
parent 23b2f7d6bb
commit 051053d4fd

View file

@ -1550,7 +1550,7 @@ class Configurations(TestSuite):
and not line.strip().startswith(comment)
):
for ip in re.split("[ \t,='\"(){}\[\]]", line):
if ip == "::" or "0.0.0.0" in ip:
if ip == "::" or ( "0.0.0.0" in ip and ip.startswith("0.0.0.0") ):
yield Info(
f"{filename}:{number}: Binding to '0.0.0.0' or '::' can result "
"in a security issue as the reverse proxy and the SSO can be "