Fix DP coordinator ZMQ port TOCTOU (#37452)
Signed-off-by: Itay Alroy <ialroy@nvidia.com>
This commit is contained in:
@@ -247,7 +247,7 @@ def split_zmq_path(path: str) -> tuple[str, str, str]:
|
||||
|
||||
scheme = parsed.scheme
|
||||
host = parsed.hostname or ""
|
||||
port = str(parsed.port or "")
|
||||
port = "" if parsed.port is None else str(parsed.port)
|
||||
if host.startswith("[") and host.endswith("]"):
|
||||
host = host[1:-1] # Remove brackets for IPv6 address
|
||||
|
||||
|
||||
Reference in New Issue
Block a user