mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 04:35:24 +00:00
Always check when update-templates passed
This commit is contained in:
parent
5447387e71
commit
299a6d5194
@ -131,7 +131,7 @@ func (r *Runner) updateTemplates() error {
|
||||
|
||||
// Check if last checked is more than 24 hours.
|
||||
// If not, return since we don't want to do anything now.
|
||||
if time.Now().Sub(r.templatesConfig.LastChecked) < 24*time.Hour {
|
||||
if time.Now().Sub(r.templatesConfig.LastChecked) < 24*time.Hour && !r.options.UpdateTemplates {
|
||||
return nil
|
||||
}
|
||||
r.templatesConfig.LastChecked = time.Now()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user