misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-01-18 16:32:37 +01:00
commit 81f1d6b88f
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -90,6 +90,9 @@ func (w *WiFiModule) startDeauth(to net.HardwareAddr) error {
}
if len(toDeauth) == 0 {
if isBcast {
return nil
}
return fmt.Errorf("%s is an unknown BSSID, is in the deauth skip list, or doesn't have detected clients.", to.String())
}