Silence discovery warnings (fixes #1388)

Not performing net.InterfaceAddrs() check in the constructor, as that means we wouldn't start
the read loop, which completely kills it.
This commit is contained in:
Audrius Butkevicius
2015-06-04 12:57:50 +01:00
parent 5f4a92c8e6
commit 4180569443

View File

@@ -47,7 +47,9 @@ func (b *Broadcast) writer() {
addrs, err := net.InterfaceAddrs()
if err != nil {
l.Warnln("Broadcast: interface addresses:", err)
if debug {
l.Debugln("Broadcast: interface addresses:", err)
}
continue
}