fix: ignoring broadcast addresses

This commit is contained in:
evilsocket 2018-02-08 03:24:21 +01:00
commit 7bc0f6cf11

View file

@ -137,7 +137,7 @@ func (tp *Targets) Remove(ip, mac string) {
}
func (tp *Targets) shouldIgnore(ip string) bool {
return (ip == tp.Interface.IpAddress || ip == tp.Gateway.IpAddress)
return (ip == tp.Interface.IpAddress || ip == tp.Gateway.IpAddress || ip == "255.255.255.255")
}
func (tp *Targets) Has(ip string) bool {