diff --git a/python/sglang/srt/utils.py b/python/sglang/srt/utils.py index 4151968dd..b93c28c39 100644 --- a/python/sglang/srt/utils.py +++ b/python/sglang/srt/utils.py @@ -942,6 +942,8 @@ def get_zmq_socket( buf_size = -1 socket = context.socket(socket_type) + if endpoint.find("[") != -1: + socket.setsockopt(zmq.IPV6, 1) def set_send_opt(): socket.setsockopt(zmq.SNDHWM, 0)