Fix logical issue.
authorfunilrys <redacted>
Sun, 3 Sep 2023 13:11:00 +0000 (15:11 +0200)
committerfunilrys <redacted>
Sun, 3 Sep 2023 13:11:00 +0000 (15:11 +0200)
updateHostsFile.py

index d56b1d7212a3ab2d19cd9623041d036b0d399985..db3f3fb98152b185b90b5d66ded06045641f6bfb 100755 (executable)
@@ -1126,7 +1126,8 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
         if (
             is_ip(hostname)
             or re.search(static_ip_regex, hostname)
-            or ("." not in hostname and ":" not in hostname)
+            or "." not in hostname
+            or ":" in hostname
         ):
             # Example: 0.0.0.0 127.0.0.1
 
git clone https://git.99rst.org/PROJECT