misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-20 04:26:19 +01:00
parent ccffeff28f
commit c0981ea9e6
2 changed files with 2 additions and 1 deletions

View file

@ -154,7 +154,7 @@ func (lan *LAN) shouldIgnore(ip, mac string) bool {
return true
}
// skip broadcast macs
if strings.ToLower(mac) == "ff:ff:ff:ff:ff:ff" {
if strings.ToLower(mac) == BroadcastMacS {
return true
}
// skip everything which is not in our subnet (multicast noise)