Ensure that hostnames without dots are excluded.

This patch fixes #2347.
This commit is contained in:
funilrys
2023-07-26 15:06:21 +02:00
parent 93f0d86d46
commit 7e25ed039a
2 changed files with 3 additions and 2 deletions

View File

@@ -842,6 +842,7 @@ class TestNormalizeRule(BaseStdout):
"128.0.0.1",
"0.0.0 google",
"0.1.2.3.4 foo/bar",
"0.0.0.0 https"
]:
self.assertEqual(normalize_rule(rule, **kwargs), (None, None))