Skip to content

Commit

Permalink
修复目标传递下一节点重复的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
x51pwn committed Jun 25, 2022
1 parent 923b3d0 commit 28efef9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/naabu/v2/pkg/runner/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,12 @@ func (r *Runner) DoDns(target string) {
}
for _, ip := range ips {
if r.options.Stream {
log.Println("Stream add ", ip)
r.streamChannel <- iputil.ToCidr(ip)
} else if err := r.scanner.IPRanger.AddHostWithMetadata(ip, target); err != nil {
gologger.Warning().Msgf("%s\n", err)
} else {
log.Println(" r.scanner.IPRanger.AddHostWithMetadata add ", ip, " ", target)
}
}
}
Expand Down

0 comments on commit 28efef9

Please sign in to comment.