From 7bc0f6cf11e75477d859eb9ac09cd765e4359d8a Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 03:24:21 +0100 Subject: [PATCH] fix: ignoring broadcast addresses --- session/targets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/targets.go b/session/targets.go index 9b202888..de7559fd 100644 --- a/session/targets.go +++ b/session/targets.go @@ -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 {