This commit is contained in:
crusader
2018-09-05 05:03:43 +09:00
parent 4e18a6f932
commit b9ac5b2a71
9 changed files with 9 additions and 18 deletions

View File

@@ -52,9 +52,7 @@ func Scan(discoverySession session.DiscoverySession) error {
}
delay.Store(true)
if h := handlePacketARP(zone, targetHosts, hosts, packet); nil != h {
if h != nil {
discoverySession.AddHost(h)
}
go discoverySession.AddHost(h)
}
case <-ticker.C:
if false == delay.Load().(bool) {