From 40c750141ae13a6d3170f2649e25e1d89ab7bd9e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 16 May 2014 16:28:52 +0200 Subject: [PATCH] Actually announce listen port locally --- discover/discover.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discover/discover.go b/discover/discover.go index 8b677a025..d407285d7 100644 --- a/discover/discover.go +++ b/discover/discover.go @@ -398,6 +398,8 @@ func resolveAddrs(addrs []string) []Address { addr := addrToAddr(addrRes) if len(addr.IP) > 0 { raddrs = append(raddrs, addr) + } else { + raddrs = append(raddrs, Address{Port: addr.Port}) } } return raddrs