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 2a6ee53 commit 875cd5aCopy full SHA for 875cd5a
src/cluster.jl
@@ -1293,9 +1293,9 @@ function choose_bind_addr()
1293
addrs = getipaddrs()
1294
i = something(
1295
findfirst(ip -> !islinklocaladdr(ip) && ip isa IPv4, addrs), # first non-link-local IPv4
1296
- findfirst(ip -> !islinklocaladdr(ip), addrs), # first non-link-local
+ findfirst(ip -> !islinklocaladdr(ip) && ip isa IPv6, addrs), # first non-link-local IPv6
1297
findfirst(ip -> ip isa IPv4, addrs), # first IPv4
1298
- 1, # first address
+ findfirst(ip -> ip isa IPv6, addrs), # first IPv6
1299
)
1300
return addrs[i]
1301
end
0 commit comments