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()
|
defer reader.Close()
|
||||||
|
options.TemplatePath = filePath
|
||||||
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue