mirror of https://github.com/daffainfo/nuclei.git
Fixed non-working example due to loader interface change
parent
7170cc2828
commit
55aa62d0f2
|
@ -345,7 +345,11 @@ func main() {
|
|||
}
|
||||
executerOpts.WorkflowLoader = workflowLoader
|
||||
|
||||
store, err := loader.New(loader.NewConfig(defaultOpts, catalog, executerOpts))
|
||||
configObject, err := config.ReadConfiguration()
|
||||
if err != nil {
|
||||
log.Fatalf("Could not read config: %s\n", err)
|
||||
}
|
||||
store, err := loader.New(loader.NewConfig(defaultOpts, configObject, catalog, executerOpts))
|
||||
if err != nil {
|
||||
log.Fatalf("Could not create loader client: %s\n", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue