mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 20:15:24 +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
|
// processTemplateWithList process a template on the URL list
|
||||||
func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
func (r *Runner) processWorkflowWithList(template *templates.Template) bool {
|
||||||
|
if r.options.Workflows {
|
||||||
|
return false
|
||||||
|
}
|
||||||
results := &atomic.Bool{}
|
results := &atomic.Bool{}
|
||||||
wg := sizedwaitgroup.New(r.options.BulkSize)
|
wg := sizedwaitgroup.New(r.options.BulkSize)
|
||||||
|
|
||||||
|
|||||||
@ -302,7 +302,7 @@ func (r *Runner) RunEnumeration() {
|
|||||||
|
|
||||||
if len(template.Workflows) > 0 {
|
if len(template.Workflows) > 0 {
|
||||||
results.CAS(false, r.processWorkflowWithList(template))
|
results.CAS(false, r.processWorkflowWithList(template))
|
||||||
} else if !r.options.Workflows {
|
} else {
|
||||||
results.CAS(false, r.processTemplateWithList(template))
|
results.CAS(false, r.processTemplateWithList(template))
|
||||||
}
|
}
|
||||||
}(t)
|
}(t)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user