Skip to content

Commit

Permalink
[BugFix] Fix ipv4 address parsing bug
Browse files Browse the repository at this point in the history
vllm-project#3641 was a fix for ipv6 but broke ipv4 case.
  • Loading branch information
njhill committed Mar 26, 2024
1 parent a979d97 commit 95410fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_ip() -> str:


def get_distributed_init_method(ip: str, port: int) -> str:
return f"tcp://[{ip}]:{port}"
return f"tcp://[{ip}]:{port}" if ":" in ip else f"tcp://{ip}:{port}"


def get_open_port() -> int:
Expand Down

0 comments on commit 95410fd

Please sign in to comment.