Fix DP coordinator ZMQ port TOCTOU (#37452)

Signed-off-by: Itay Alroy <ialroy@nvidia.com>
This commit is contained in:
Itay Alroy
2026-03-20 00:58:31 +00:00
committed by GitHub
parent 4ca3fa6bb4
commit ca1ac1a4b4
2 changed files with 58 additions and 8 deletions
+1 -1
View File
@@ -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