From 206df571999b51e67323ae3008b7e429e53af679 Mon Sep 17 00:00:00 2001 From: 0oshowero0 Date: Wed, 1 Jul 2026 10:38:44 +0800 Subject: [PATCH] fix ipv6 support Signed-off-by: 0oshowero0 --- transfer_queue/utils/zmq_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transfer_queue/utils/zmq_utils.py b/transfer_queue/utils/zmq_utils.py index 4fe32f0a..89608738 100644 --- a/transfer_queue/utils/zmq_utils.py +++ b/transfer_queue/utils/zmq_utils.py @@ -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]