mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
balls
This commit is contained in:
parent
50577e42ca
commit
8e4be293ab
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,7 @@ func areTheSame(iface net.Interface, piface pcap.Interface) bool {
|
|||
if addrs, err := iface.Addrs(); err == nil {
|
||||
for _, ia := range addrs {
|
||||
for _, ib := range piface.Addresses {
|
||||
fmt.Printf(" %+v\n", ib)
|
||||
if ia.String() == ib.IP.String() {
|
||||
if ia.String() == ib.IP.String() || strings.HasPrefix(ia.String(), ib.IP.String()) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue