mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: basic ipv6 support
This commit is contained in:
parent
d0b5c34763
commit
bef4c6abaa
8 changed files with 115 additions and 35 deletions
|
@ -153,7 +153,7 @@ func (lan *LAN) shouldIgnore(ip, mac string) bool {
|
|||
}
|
||||
// skip everything which is not in our subnet (multicast noise)
|
||||
addr := net.ParseIP(ip)
|
||||
return !lan.iface.Net.Contains(addr)
|
||||
return addr.To4() != nil && !lan.iface.Net.Contains(addr)
|
||||
}
|
||||
|
||||
func (lan *LAN) Has(ip string) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue