Unverified Commit a408820f authored by Michael Goin's avatar Michael Goin Committed by GitHub
Browse files

[Bugfix] Fix port handling in make_zmq_path (#19117)

parent c56ed8bb
...@@ -2461,7 +2461,7 @@ def make_zmq_path(scheme: str, host: str, port: Optional[int] = None) -> str: ...@@ -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}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment