mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
balls
This commit is contained in:
parent
789d7e2c51
commit
50577e42ca
1 changed files with 2 additions and 0 deletions
|
@ -16,9 +16,11 @@ import (
|
|||
const MonitorModeAddress = "0.0.0.0"
|
||||
|
||||
func areTheSame(iface net.Interface, piface pcap.Interface) bool {
|
||||
fmt.Printf("%+v\n", piface)
|
||||
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() {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue