mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: reporting clearer error if selected interface is not in monitor mode while using wifi.* modules.
This commit is contained in:
parent
229704667f
commit
5118047e60
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ func (w *WiFiRecon) Configure() error {
|
|||
defer ihandle.CleanUp()
|
||||
|
||||
if err = ihandle.SetRFMon(true); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("Interface not in monitor mode? %s", err)
|
||||
} else if err = ihandle.SetSnapLen(65536); err != nil {
|
||||
return err
|
||||
} else if err = ihandle.SetTimeout(pcap.BlockForever); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue