fixing tracking mode not toggling properly from previous changes

This commit is contained in:
kayos 2021-05-28 02:41:18 -07:00
parent 607e996ad6
commit 8070caa958

@ -131,10 +131,12 @@ func (s *Scan) Start() error {
//could add -t option to enable this feature for active tracking
// Skipping duplicate results
if projVars.TrackingMode == false {
if lname == projVars.ScanList[result.Address.String()] {
for _, dev := range s.Devices {
if addr == dev.MAC {
return
}
}
}
// Upon finding new and valid info we update the time for last activity
s.Activity = time.Now()
@ -170,6 +172,7 @@ func (s *Scan) Start() error {
if err != nil {
log.Error().Err(err).Msg("EROS_RECALL_FAILURE")
}
log.Info().Interface("Device", fromEros).Msg("EROS_RECALL")
if projVars.AttackMode == true && projVars.TrackingMode == false /*changed to false for debug*/ {