More local discovery URL debugging (ref #2444)

This commit is contained in:
Jakob Borg 2015-11-10 10:16:55 +01:00
parent a45795efec
commit ef0a0db07e

View File

@ -215,6 +215,7 @@ func (c *localClient) registerDevice(src net.Addr, device Device) bool {
continue
}
u.Host = net.JoinHostPort(host, strconv.Itoa(tcpAddr.Port))
l.Debugf("discover: Reconstructed URL is %#v", u)
validAddresses = append(validAddresses, u.String())
l.Debugf("discover: Replaced address %v in %s to get %s", tcpAddr.IP, addr.URL, u.String())
} else {