diff options
author | Jakob Borg <jakob@nym.se> | 2014-06-14 11:14:37 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-06-14 11:14:37 +0200 |
commit | 9ca87f53149e28c15bdbcdf0a7d2dfcc0406ff51 (patch) | |
tree | 3d1588a01071a37a1b64c619cf1cc23872f5cbdc /beacon | |
parent | 537c6b3b6938fa417330c65f5c92e6589c313493 (diff) |
Don't attempt to use broadcast with IPv6 (ref #346)
Diffstat (limited to 'beacon')
-rw-r--r-- | beacon/beacon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/beacon/beacon.go b/beacon/beacon.go index 5f7aa7f4d9..8ad7176117 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) } |