[Bugfix] Fix port handling in make_zmq_path (#19117)
This commit is contained in:
+1
-1
@@ -2461,7 +2461,7 @@ def make_zmq_path(scheme: str, host: str, port: Optional[int] = None) -> str:
|
|||||||
Returns:
|
Returns:
|
||||||
A properly formatted ZMQ path string.
|
A properly formatted ZMQ path string.
|
||||||
"""
|
"""
|
||||||
if not port:
|
if port is None:
|
||||||
return f"{scheme}://{host}"
|
return f"{scheme}://{host}"
|
||||||
if is_valid_ipv6_address(host):
|
if is_valid_ipv6_address(host):
|
||||||
return f"{scheme}://[{host}]:{port}"
|
return f"{scheme}://[{host}]:{port}"
|
||||||
|
|||||||
Reference in New Issue
Block a user