small refactor

This commit is contained in:
OniriCorpe 2024-01-18 20:57:04 +01:00
parent 051053d4fd
commit f3bf1b237b

View file

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