mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 04:15:01 +08:00
[Bugfix] Fix port handling in make_zmq_path (#19117)
This commit is contained in:
parent
c56ed8bb0e
commit
a408820f2f
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user