This commit is contained in:
shadow1ng
2021-05-29 15:55:05 +08:00
parent 9d385eb26a
commit 936c1f5395
4 changed files with 25 additions and 10 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ func PortScan(hostslist []string, ports string, timeout int64) []string {
probePorts = tmpPorts
}
workers := common.Threads
Addrs := make(chan Addr)
results := make(chan string)
Addrs := make(chan Addr, len(hostslist)*len(probePorts))
results := make(chan string, len(hostslist)*len(probePorts))
var wg sync.WaitGroup
//接收结果