Skip to content

Commit 7435cfb

Browse files
authored
Fix WSL IP detection when DNS Tunnelling is enabled (#1032)
1 parent 329486a commit 7435cfb

File tree

1 file changed

+2
-0
lines changed
  • webots_ros2_driver/webots_ros2_driver

1 file changed

+2
-0
lines changed

webots_ros2_driver/webots_ros2_driver/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def get_wsl_ip_address():
102102
file.close()
103103
if len(tokens[1]) == 0:
104104
return '127.0.0.1'
105+
if tokens[1] == '10.255.255.254':
106+
return get_host_ip()
105107
return tokens[1]
106108
finally:
107109
file.close()

0 commit comments

Comments
 (0)