mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-11-09 12:21:25 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13cb549351 |
+8
-8
@@ -108,14 +108,6 @@ func (e *NucleiEngine) init(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if e.opts.ProxyInternal && types.ProxyURL != "" || types.ProxySocksURL != "" {
|
|
||||||
httpclient, err := httpclientpool.Get(e.opts, &httpclientpool.Configuration{})
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
e.httpClient = httpclient
|
|
||||||
}
|
|
||||||
|
|
||||||
e.parser = templates.NewParser()
|
e.parser = templates.NewParser()
|
||||||
|
|
||||||
if sharedInit == nil || protocolstate.ShouldInit() {
|
if sharedInit == nil || protocolstate.ShouldInit() {
|
||||||
@@ -129,6 +121,14 @@ func (e *NucleiEngine) init(ctx context.Context) error {
|
|||||||
e.applyRequiredDefaults(ctx)
|
e.applyRequiredDefaults(ctx)
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
if e.opts.ProxyInternal && types.ProxyURL != "" || types.ProxySocksURL != "" {
|
||||||
|
httpclient, err := httpclientpool.Get(e.opts, &httpclientpool.Configuration{})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
e.httpClient = httpclient
|
||||||
|
}
|
||||||
|
|
||||||
// setup progressbar
|
// setup progressbar
|
||||||
if e.enableStats {
|
if e.enableStats {
|
||||||
progressInstance, progressErr := progress.NewStatsTicker(e.opts.StatsInterval, e.enableStats, e.opts.StatsJSON, false, e.opts.MetricsPort)
|
progressInstance, progressErr := progress.NewStatsTicker(e.opts.StatsInterval, e.enableStats, e.opts.StatsJSON, false, e.opts.MetricsPort)
|
||||||
|
|||||||
Reference in new issue
Block a user