Fix minor logical issue.

This commit is contained in:
funilrys
2023-09-03 13:33:33 +02:00
parent 33bd0df131
commit fed5590f26

View File

@@ -1125,10 +1125,8 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
if (
is_ip(hostname)
or re.search(static_ip_regex, split_rule[0])
or "." not in hostname
or ":" in hostname
or ""
or re.search(static_ip_regex, hostname)
or ("." not in hostname and ":" not in hostname)
):
# Example: 0.0.0.0 127.0.0.1