Skip to content

Commit

Permalink
Merge pull request #125 from dokku/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
fix: silence warning if TRACE is not specified
  • Loading branch information
josegonzalez authored Sep 23, 2024
2 parents 50f9df4 + 7b52536 commit 2a7142d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/parse-ssh-host
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def is_ipv6(ip):
try:
return isinstance(ipaddress.ip_address(ip), ipaddress.IPv6Address)
except ValueError:
print(f"Invalid IP address: {ip}", file=sys.stderr)
if os.getenv("TRACE") != "':
print(f"Invalid IP address: {ip}", file=sys.stderr)
return False


Expand Down

0 comments on commit 2a7142d

Please sign in to comment.