Skip to content

Commit

Permalink
Fix logical issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Sep 3, 2023
1 parent fed5590 commit 2726591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updateHostsFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,8 @@ def belch_unwanted(unwanted: str) -> Tuple[None, None]:
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

Expand Down

0 comments on commit 2726591

Please sign in to comment.