mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
tweak to ignore IPs like "10.0.0.0"
This commit is contained in:
parent
23b2f7d6bb
commit
051053d4fd
1 changed files with 1 additions and 1 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue