Skip to content

Commit

Permalink
0 is a valid port number, it means assign one
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 4, 2024
1 parent 49c12aa commit cc6582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/net/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def parse_bind_ip(bind_ip:str, default_port:int=DEFAULT_PORT):
else:
try:
iport = int(port)
assert 0<iport<2**16
assert 0<=iport<2**16
except (TypeError, ValueError):
raise InitException(f"invalid port number: {port}") from None
options = {}
Expand Down

0 comments on commit cc6582e

Please sign in to comment.