mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
Merge pull request #830 from HarshCasper/master
Potential Code-Refactor and Bug Fixes
This commit is contained in:
commit
50c1505fd7
2 changed files with 2 additions and 4 deletions
|
@ -35144,7 +35144,7 @@ func ManufLookup(mac string) string {
|
|||
macHex := strings.Replace(mac, ":", "", -1)
|
||||
macInt := new(big.Int)
|
||||
|
||||
if _, ok := macInt.SetString(macHex, 16); ok == false {
|
||||
if _, ok := macInt.SetString(macHex, 16); !ok {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
|
@ -64,9 +64,7 @@ func (ap *AccessPoint) RemoveClient(mac string) {
|
|||
defer ap.Unlock()
|
||||
|
||||
bssid := NormalizeMac(mac)
|
||||
if _, found := ap.clients[bssid]; found {
|
||||
delete(ap.clients, bssid)
|
||||
}
|
||||
delete(ap.clients, bssid)
|
||||
}
|
||||
|
||||
func (ap *AccessPoint) AddClientIfNew(bssid string, frequency int, rssi int8) (*Station, bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue