added timeout on ip scan when error

This commit is contained in:
Paul 2023-05-01 08:19:58 +02:00
parent a735f54024
commit 2f60ee84e1

View File

@ -163,7 +163,6 @@ func ScanIP(cfg *config.Config) (err error) {
close(orphanchan)
<-done
wg.Wait()
} else {
time.Sleep(30 * time.Second)
}
@ -185,6 +184,7 @@ func ScanOrphan(wg *sync.WaitGroup, orphans chan IP, done chan bool, thr int, cf
query, err := QueryInfo(&queryclient, orphan.IP)
if err != nil {
log.Println(err)
time.Sleep(10 * time.Minute)
continue
}