mirror of https://github.com/daffainfo/nuclei.git
misc
parent
71e4396bd4
commit
fc868aba4a
|
@ -31,7 +31,7 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool {
|
|||
return nil
|
||||
}
|
||||
if r.options.Stream {
|
||||
r.hostMapStream.Scan(processItem)
|
||||
_ = r.hostMapStream.Scan(processItem)
|
||||
} else {
|
||||
r.hostMap.Scan(processItem)
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
|||
}
|
||||
|
||||
if r.options.Stream {
|
||||
r.hostMapStream.Scan(processItem)
|
||||
_ = r.hostMapStream.Scan(processItem)
|
||||
} else {
|
||||
r.hostMap.Scan(processItem)
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ func New(options *types.Options) (*Runner, error) {
|
|||
// nolint:errcheck // ignoring error
|
||||
runner.hostMap.Set(url, nil)
|
||||
if options.Stream {
|
||||
runner.hostMapStream.Set([]byte(url), nil)
|
||||
_ = runner.hostMapStream.Set([]byte(url), nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ func New(options *types.Options) (*Runner, error) {
|
|||
// nolint:errcheck // ignoring error
|
||||
runner.hostMap.Set(url, nil)
|
||||
if options.Stream {
|
||||
runner.hostMapStream.Set([]byte(url), nil)
|
||||
_ = runner.hostMapStream.Set([]byte(url), nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ func New(options *types.Options) (*Runner, error) {
|
|||
// nolint:errcheck // ignoring error
|
||||
runner.hostMap.Set(url, nil)
|
||||
if options.Stream {
|
||||
runner.hostMapStream.Set([]byte(url), nil)
|
||||
_ = runner.hostMapStream.Set([]byte(url), nil)
|
||||
}
|
||||
}
|
||||
input.Close()
|
||||
|
|
Loading…
Reference in New Issue