fix: attempt to blindly fix #95

This commit is contained in:
evilsocket 2018-02-27 19:54:49 +01:00
commit e4e10ba088

View file

@ -125,11 +125,11 @@ func (lan *LAN) Remove(ip, mac string) {
func (lan *LAN) shouldIgnore(ip, mac string) bool {
// skip our own address
if ip == lan.iface.IpAddress {
if ip == lan.iface.IpAddress || mac == lan.iface.HwAddress {
return true
}
// skip the gateway
if ip == lan.gateway.IpAddress {
if ip == lan.gateway.IpAddress || mac == lan.gateway.HwAddress {
return true
}
// skip broadcast addresses