mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 22:15:27 +00:00
Fixed a bug with workflow
This commit is contained in:
parent
ebe6a56d13
commit
99e66d7554
@ -32,6 +32,9 @@ func (r *Runner) processTemplateWithList(template *templates.Template) bool {
|
||||
|
||||
// processTemplateWithList process a template on the URL list
|
||||
func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
||||
if r.options.Workflows {
|
||||
return false
|
||||
}
|
||||
results := &atomic.Bool{}
|
||||
wg := sizedwaitgroup.New(r.options.BulkSize)
|
||||
|
||||
|
||||
@ -302,7 +302,7 @@ func (r *Runner) RunEnumeration() {
|
||||
|
||||
if len(template.Workflows) > 0 {
|
||||
results.CAS(false, r.processWorkflowWithList(template))
|
||||
} else if !r.options.Workflows {
|
||||
} else {
|
||||
results.CAS(false, r.processTemplateWithList(template))
|
||||
}
|
||||
}(t)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user