Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion transfer_queue/utils/zmq_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def get_free_port(ip: str) -> int:
# in that case just ignore and use the default behavior.
pass

sock.bind(("", 0))
bind_host = "::" if is_ipv6 else ""
sock.bind((bind_host, 0))
return sock.getsockname()[1]


Expand Down
Loading