mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Use 127.0.0.1 in win32 as node ip addr (#19362)
This commit is contained in:
parent
e9f66cc394
commit
0b82135d2d
1 changed files with 2 additions and 2 deletions
|
@ -402,8 +402,8 @@ def node_ip_address_from_perspective(address):
|
|||
def get_node_ip_address(address="8.8.8.8:53"):
|
||||
if ray.worker._global_node is not None:
|
||||
return ray.worker._global_node.node_ip_address
|
||||
if sys.platform == "darwin":
|
||||
# Due to the mac osx firewall,
|
||||
if sys.platform == "darwin" or sys.platform == "win32":
|
||||
# Due to the mac osx/windows firewall,
|
||||
# we use loopback ip as the ip address
|
||||
# to prevent security popups.
|
||||
return "127.0.0.1"
|
||||
|
|
Loading…
Add table
Reference in a new issue