Skip to content

Commit

Permalink
fix: 增加 syn 下转发协程的等待逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRoom committed Mar 5, 2023
1 parent 2265912 commit 147d545
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/port/syn/syn.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ func NewSynScanner(firstIp net.IP, retChan chan port.OpenIpPort, option port.Opt
} else {
go func() {
for t := range ss.openPortChan {
ss.portProbeWg.Add(1)
ss.retChan <- t
ss.portProbeWg.Done()
if t.Port == 0 {
break
}
Expand Down

0 comments on commit 147d545

Please sign in to comment.