This commit is contained in:
crusader 2018-08-31 13:05:59 +09:00
parent af3bc70f9a
commit 7ae03b9168

View File

@ -68,13 +68,17 @@ func Scan(discoverySession session.DiscoverySession) {
wg.Add(1)
go func() {
defer wg.Done()
LOOP:
for _, target := range targetHosts {
for _, c := range _2cCS {
if scanV2(target, discoverySession, c) {
continue LOOP
wg.Add(1)
go func(target net.IP) {
defer wg.Done()
for _, c := range _2cCS {
if scanV2(target, discoverySession, c) {
return
}
}
}
}(target)
}
}()
}