Skip to content

Commit 8f10b72

Browse files
teste
1 parent eac5f11 commit 8f10b72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cluster.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,8 +1397,10 @@ function init_bind_addr()
13971397
else
13981398
bind_port = 0
13991399
try
1400-
bind_addr = string(getipaddr())
1401-
@info "ADDR: $(getipaddrs())"
1400+
ips = getipaddrs(IPv4; loopback = false)
1401+
n = length(ips)
1402+
bind_addr = string(ips[n])
1403+
#@info "ADDR: $(getipaddrs())"
14021404
catch
14031405
# All networking is unavailable, initialize bind_addr to the loopback address
14041406
# Will cause an exception to be raised only when used.

0 commit comments

Comments
 (0)