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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user