diff --git a/beacon/beacon.go b/beacon/beacon.go index 5f7aa7f4d..8ad717611 100644 --- a/beacon/beacon.go +++ b/beacon/beacon.go @@ -83,7 +83,7 @@ func (b *Beacon) writer() { var dsts []net.IP for _, addr := range addrs { - if iaddr, ok := addr.(*net.IPNet); ok && iaddr.IP.IsGlobalUnicast() { + if iaddr, ok := addr.(*net.IPNet); ok && iaddr.IP.IsGlobalUnicast() && iaddr.IP.To4() != nil { baddr := bcast(iaddr) dsts = append(dsts, baddr.IP) }