mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
9da2df981c
commit
d9b7d24314
3 changed files with 23 additions and 12 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/log"
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
"github.com/evilsocket/bettercap-ng/session"
|
||||
|
||||
"github.com/malfunkt/iprange"
|
||||
|
@ -80,6 +81,11 @@ func (p *Prober) Start() error {
|
|||
}
|
||||
|
||||
return p.SetRunning(true, func() {
|
||||
if p.Session.Interface.IpAddress == network.MonitorModeAddress {
|
||||
log.Info("Interface is in monitor mode, skipping net.probe")
|
||||
return
|
||||
}
|
||||
|
||||
list, err := iprange.Parse(p.Session.Interface.CIDR())
|
||||
if err != nil {
|
||||
log.Fatal("%s", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue