diff --git a/nuclei_Yaml/nuclei_yaml.go b/nuclei_Yaml/nuclei_yaml.go index c08099655..202162296 100644 --- a/nuclei_Yaml/nuclei_yaml.go +++ b/nuclei_Yaml/nuclei_yaml.go @@ -293,13 +293,14 @@ func readConfig() { options.UpdateNuclei = false options.UpdateTemplates = false + options.TemplatesDirectory = "" // 嵌入式集成私人版本nuclei-templates 共3744个YAML POC if "true" == pkg.GetVal("enablEmbedYaml") { - options.TemplatesDirectory = "./config/nuclei-templates" + options.Templates = []string{"./config/nuclei-templates"} options.NoUpdateTemplates = true } else { - options.TemplatesDirectory = "" + options.NoUpdateTemplates = false } options.EnableProgressBar = false