mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:25:27 +00:00
Implicitly set the headless flag if template validation was requested, in order to correctly validate headless templates instead of complaining about "cannot create template executer"
This commit is contained in:
parent
8a8d61996f
commit
d10dfb550e
@ -95,6 +95,7 @@ func validateOptions(options *types.Options) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if options.Validate {
|
if options.Validate {
|
||||||
|
options.Headless = true // required for correct validation of headless templates
|
||||||
validateTemplatePaths(options.TemplatesDirectory, options.Templates, options.Workflows)
|
validateTemplatePaths(options.TemplatesDirectory, options.Templates, options.Workflows)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -103,7 +103,7 @@ type Options struct {
|
|||||||
Headless bool
|
Headless bool
|
||||||
// ShowBrowser specifies whether the show the browser in headless mode
|
// ShowBrowser specifies whether the show the browser in headless mode
|
||||||
ShowBrowser bool
|
ShowBrowser bool
|
||||||
// SytemResolvers enables override of nuclei's DNS client opting to use system resolver stack.
|
// SystemResolvers enables override of nuclei's DNS client opting to use system resolver stack.
|
||||||
SystemResolvers bool
|
SystemResolvers bool
|
||||||
// Metrics enables display of metrics via an http endpoint
|
// Metrics enables display of metrics via an http endpoint
|
||||||
Metrics bool
|
Metrics bool
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user