diff --git a/internal/runner/options.go b/internal/runner/options.go index ebb49fff7e..8798c73113 100644 --- a/internal/runner/options.go +++ b/internal/runner/options.go @@ -32,6 +32,7 @@ import ( "github.com/projectdiscovery/nuclei/v3/pkg/utils/yaml" fileutil "github.com/projectdiscovery/utils/file" "github.com/projectdiscovery/utils/generic" + logutil "github.com/projectdiscovery/utils/log" stringsutil "github.com/projectdiscovery/utils/strings" ) @@ -341,7 +342,7 @@ func configureOutput(options *types.Options) { } // disable standard logger (ref: https://github.com/golang/go/issues/19895) - // logutil.DisableDefaultLogger() + logutil.DisableDefaultLogger() } // loadResolvers loads resolvers from both user-provided flags and file diff --git a/pkg/core/execute_options.go b/pkg/core/execute_options.go index a9d97f775b..4d27b5f660 100644 --- a/pkg/core/execute_options.go +++ b/pkg/core/execute_options.go @@ -84,7 +84,7 @@ func (e *Engine) ExecuteScanWithOpts(ctx context.Context, templatesList []*templ } // Execute All SelfContained in parallel - // e.executeAllSelfContained(ctx, selfContained, results, selfcontainedWg) + e.executeAllSelfContained(ctx, selfContained, results, selfcontainedWg) strategyResult := &atomic.Bool{} switch e.options.ScanStrategy { diff --git a/pkg/installer/versioncheck.go b/pkg/installer/versioncheck.go index 7709ed74f4..b06f56f1c1 100644 --- a/pkg/installer/versioncheck.go +++ b/pkg/installer/versioncheck.go @@ -68,7 +68,6 @@ func getpdtmParams(isSDK bool) string { // UpdateIgnoreFile updates default ignore file by downloading latest ignore file func UpdateIgnoreFile() error { - return nil resp, err := retryableHttpClient.Get(pdtmNucleiIgnoreFileEndpoint + "?" + getpdtmParams(false)) if err != nil { return err @@ -84,11 +83,11 @@ func UpdateIgnoreFile() error { } func doVersionCheck(isSDK bool) error { - return nil // we use global retryablehttp client so its not immeditely gc'd if any references are held // and according our config we have idle connections which are shown as leaked by goleak in tests // i.e we close all idle connections after our use and it doesn't affect any other part of the code defer retryableHttpClient.HTTPClient.CloseIdleConnections() + resp, err := retryableHttpClient.Get(pdtmNucleiVersionEndpoint + "?" + getpdtmParams(isSDK)) if err != nil { return err