We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8689a commit 0b7288cCopy full SHA for 0b7288c
src/cluster.jl
@@ -1292,7 +1292,10 @@ function init_bind_addr()
1292
else
1293
bind_port = 0
1294
try
1295
- bind_addr = string(getipaddr())
+ # Use the first non-link-local IPv4 address
1296
+ addrs = Sockets.getipaddrs(Sockets.IPv4)
1297
+ filter!(!Sockets.islinklocaladdr, addrs)
1298
+ bind_addr = string(first(addrs))
1299
catch
1300
# All networking is unavailable, initialize bind_addr to the loopback address
1301
# Will cause an exception to be raised only when used.
0 commit comments