Skip to content

Commit d2a42f9

Browse files
ttbachyinsdaguofangze
authored andcommitted
[Minor fix] The domain dns.google may cause a socket.gaierror exception (vllm-project#3176)
Co-authored-by: guofangze <[email protected]>
1 parent f5c0236 commit d2a42f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def get_ip() -> str:
173173
# try ipv4
174174
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
175175
try:
176-
s.connect(("dns.google", 80)) # Doesn't need to be reachable
176+
s.connect(("8.8.8.8", 80)) # Doesn't need to be reachable
177177
return s.getsockname()[0]
178178
except OSError:
179179
# try ipv6

0 commit comments

Comments
 (0)