Fix for #33: do not use loopbacK IP addresses
This commit is contained in:
parent
36abb0b21b
commit
b987734dc3
@ -67,6 +67,11 @@ func localIPv4MCastAddrs() ([]string, error) {
|
||||
// Not IPv4.
|
||||
continue
|
||||
}
|
||||
// Fix #33: consider NOT loopback IP addresses
|
||||
if addr.IP.IsLoopback() {
|
||||
// do not use local address
|
||||
continue
|
||||
}
|
||||
addrs = append(addrs, addr.IP.String())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user