mirror of https://github.com/daffainfo/nuclei.git
fix template path bug, pass the filepath in executeroptions
parent
e66821b49f
commit
b03a90df50
|
@ -52,6 +52,7 @@ func Parse(filePath string, preprocessor Preprocessor, options protocols.Execute
|
|||
}
|
||||
}
|
||||
defer reader.Close()
|
||||
options.TemplatePath = filePath
|
||||
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue