X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6fffa62bdb67c691e6958cf6f73c4a5fd32e0746..0b69c198f55f0294a3be1599256e8e73dfe2d000:/lib/boot/supervisor.go diff --git a/lib/boot/supervisor.go b/lib/boot/supervisor.go index b56e5ac725..a055f2b954 100644 --- a/lib/boot/supervisor.go +++ b/lib/boot/supervisor.go @@ -946,7 +946,11 @@ func (super *Supervisor) autofillConfig() error { } func addrIsLocal(addr string) (bool, error) { - return true, nil + if h, _, err := net.SplitHostPort(addr); err != nil { + return false, err + } else { + addr = net.JoinHostPort(h, "0") + } listener, err := net.Listen("tcp", addr) if err == nil { listener.Close()