fix: explicitly printing interface name if could not set it to monitor mode (ref #127)

This commit is contained in:
evilsocket 2018-03-07 11:39:24 +01:00
parent 24310b5cad
commit a8e6b497a3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -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 {