mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: attempt to blindly fix #95
This commit is contained in:
parent
781437fe6f
commit
e4e10ba088
1 changed files with 2 additions and 2 deletions
|
@ -125,11 +125,11 @@ func (lan *LAN) Remove(ip, mac string) {
|
||||||
|
|
||||||
func (lan *LAN) shouldIgnore(ip, mac string) bool {
|
func (lan *LAN) shouldIgnore(ip, mac string) bool {
|
||||||
// skip our own address
|
// skip our own address
|
||||||
if ip == lan.iface.IpAddress {
|
if ip == lan.iface.IpAddress || mac == lan.iface.HwAddress {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// skip the gateway
|
// skip the gateway
|
||||||
if ip == lan.gateway.IpAddress {
|
if ip == lan.gateway.IpAddress || mac == lan.gateway.HwAddress {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// skip broadcast addresses
|
// skip broadcast addresses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue