mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: explicitly printing interface name if could not set it to monitor mode (ref #127)
This commit is contained in:
parent
24310b5cad
commit
a8e6b497a3
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ func (w *WiFiRecon) Configure() error {
|
|||
defer ihandle.CleanUp()
|
||||
|
||||
if err = ihandle.SetRFMon(true); err != nil {
|
||||
return fmt.Errorf("Interface not in monitor mode? %s", err)
|
||||
return fmt.Errorf("Error while setting interface %s in monitor mode: %s", core.Bold(w.Session.Interface.Name()), 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