From f3bf1b237b63c8bcfec71053f07d5ab1590e3f5f Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 18 Jan 2024 20:57:04 +0100 Subject: [PATCH] small refactor --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index b6fb9c1..6cb3195 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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 and ip.startswith("0.0.0.0") ): + if ip == "::" or 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 "