ing
This commit is contained in:
parent
af3bc70f9a
commit
7ae03b9168
|
@ -68,13 +68,17 @@ func Scan(discoverySession session.DiscoverySession) {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
LOOP:
|
|
||||||
for _, target := range targetHosts {
|
for _, target := range targetHosts {
|
||||||
for _, c := range _2cCS {
|
wg.Add(1)
|
||||||
if scanV2(target, discoverySession, c) {
|
go func(target net.IP) {
|
||||||
continue LOOP
|
defer wg.Done()
|
||||||
|
for _, c := range _2cCS {
|
||||||
|
if scanV2(target, discoverySession, c) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}(target)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user