mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fixes #59
This commit is contained in:
parent
51f563d830
commit
a30ff8b359
1 changed files with 4 additions and 3 deletions
|
@ -164,10 +164,11 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
|||
// this is ugly, but necessary in order to have this
|
||||
// method handle both access point and clients
|
||||
// transparently
|
||||
ap, _ := w.Session.WiFi.Get(station.HwAddress)
|
||||
clients := ""
|
||||
if ap.NumClients() > 0 {
|
||||
clients = strconv.Itoa(ap.NumClients())
|
||||
if ap, found := w.Session.WiFi.Get(station.HwAddress); found == true {
|
||||
if ap.NumClients() > 0 {
|
||||
clients = strconv.Itoa(ap.NumClients())
|
||||
}
|
||||
}
|
||||
|
||||
return []string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue