mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 04:00:09 -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"
|
const MonitorModeAddress = "0.0.0.0"
|
||||||
|
|
||||||
func areTheSame(iface net.Interface, piface pcap.Interface) bool {
|
func areTheSame(iface net.Interface, piface pcap.Interface) bool {
|
||||||
|
fmt.Printf("%+v\n", piface)
|
||||||
if addrs, err := iface.Addrs(); err == nil {
|
if addrs, err := iface.Addrs(); err == nil {
|
||||||
for _, ia := range addrs {
|
for _, ia := range addrs {
|
||||||
for _, ib := range piface.Addresses {
|
for _, ib := range piface.Addresses {
|
||||||
|
fmt.Printf(" %+v\n", ib)
|
||||||
if ia.String() == ib.IP.String() {
|
if ia.String() == ib.IP.String() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue