This commit is contained in:
evilsocket 2018-02-21 03:30:09 +01:00
parent 51f563d830
commit a30ff8b359

View file

@ -164,10 +164,11 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
// this is ugly, but necessary in order to have this // this is ugly, but necessary in order to have this
// method handle both access point and clients // method handle both access point and clients
// transparently // transparently
ap, _ := w.Session.WiFi.Get(station.HwAddress)
clients := "" clients := ""
if ap.NumClients() > 0 { if ap, found := w.Session.WiFi.Get(station.HwAddress); found == true {
clients = strconv.Itoa(ap.NumClients()) if ap.NumClients() > 0 {
clients = strconv.Itoa(ap.NumClients())
}
} }
return []string{ return []string{