Fix for #33: do not use loopbacK IP addresses

This commit is contained in:
Jochen Hiller 2020-05-25 15:26:11 +02:00 committed by John Beisley
parent 36abb0b21b
commit b987734dc3

View File

@ -67,6 +67,11 @@ func localIPv4MCastAddrs() ([]string, error) {
// Not IPv4. // Not IPv4.
continue continue
} }
// Fix #33: consider NOT loopback IP addresses
if addr.IP.IsLoopback() {
// do not use local address
continue
}
addrs = append(addrs, addr.IP.String()) addrs = append(addrs, addr.IP.String())
} }
} }