mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Actually announce listen port locally
This commit is contained in:
parent
b60251b960
commit
40c750141a
@ -398,6 +398,8 @@ func resolveAddrs(addrs []string) []Address {
|
|||||||
addr := addrToAddr(addrRes)
|
addr := addrToAddr(addrRes)
|
||||||
if len(addr.IP) > 0 {
|
if len(addr.IP) > 0 {
|
||||||
raddrs = append(raddrs, addr)
|
raddrs = append(raddrs, addr)
|
||||||
|
} else {
|
||||||
|
raddrs = append(raddrs, Address{Port: addr.Port})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return raddrs
|
return raddrs
|
||||||
|
Loading…
Reference in New Issue
Block a user