From a408820f2fcdd4025f05f8a43dc15604fe534367 Mon Sep 17 00:00:00 2001 From: Michael Goin Date: Wed, 4 Jun 2025 23:00:59 -0400 Subject: [PATCH] [Bugfix] Fix port handling in make_zmq_path (#19117) --- vllm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/utils.py b/vllm/utils.py index 41336b80e3a2..4f905e505dbe 100644 --- a/vllm/utils.py +++ b/vllm/utils.py @@ -2461,7 +2461,7 @@ def make_zmq_path(scheme: str, host: str, port: Optional[int] = None) -> str: Returns: A properly formatted ZMQ path string. """ - if not port: + if port is None: return f"{scheme}://{host}" if is_valid_ipv6_address(host): return f"{scheme}://[{host}]:{port}"