mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:35:26 +00:00
revert
This commit is contained in:
parent
bc16ae85ae
commit
ac0107c242
@ -32,6 +32,7 @@ import (
|
|||||||
"github.com/projectdiscovery/nuclei/v3/pkg/utils/yaml"
|
"github.com/projectdiscovery/nuclei/v3/pkg/utils/yaml"
|
||||||
fileutil "github.com/projectdiscovery/utils/file"
|
fileutil "github.com/projectdiscovery/utils/file"
|
||||||
"github.com/projectdiscovery/utils/generic"
|
"github.com/projectdiscovery/utils/generic"
|
||||||
|
logutil "github.com/projectdiscovery/utils/log"
|
||||||
stringsutil "github.com/projectdiscovery/utils/strings"
|
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)
|
// 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
|
// loadResolvers loads resolvers from both user-provided flags and file
|
||||||
|
|||||||
@ -84,7 +84,7 @@ func (e *Engine) ExecuteScanWithOpts(ctx context.Context, templatesList []*templ
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Execute All SelfContained in parallel
|
// Execute All SelfContained in parallel
|
||||||
// e.executeAllSelfContained(ctx, selfContained, results, selfcontainedWg)
|
e.executeAllSelfContained(ctx, selfContained, results, selfcontainedWg)
|
||||||
|
|
||||||
strategyResult := &atomic.Bool{}
|
strategyResult := &atomic.Bool{}
|
||||||
switch e.options.ScanStrategy {
|
switch e.options.ScanStrategy {
|
||||||
|
|||||||
@ -68,7 +68,6 @@ func getpdtmParams(isSDK bool) string {
|
|||||||
|
|
||||||
// UpdateIgnoreFile updates default ignore file by downloading latest ignore file
|
// UpdateIgnoreFile updates default ignore file by downloading latest ignore file
|
||||||
func UpdateIgnoreFile() error {
|
func UpdateIgnoreFile() error {
|
||||||
return nil
|
|
||||||
resp, err := retryableHttpClient.Get(pdtmNucleiIgnoreFileEndpoint + "?" + getpdtmParams(false))
|
resp, err := retryableHttpClient.Get(pdtmNucleiIgnoreFileEndpoint + "?" + getpdtmParams(false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -84,11 +83,11 @@ func UpdateIgnoreFile() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func doVersionCheck(isSDK bool) error {
|
func doVersionCheck(isSDK bool) error {
|
||||||
return nil
|
|
||||||
// we use global retryablehttp client so its not immeditely gc'd if any references are held
|
// 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
|
// 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
|
// 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()
|
defer retryableHttpClient.HTTPClient.CloseIdleConnections()
|
||||||
|
|
||||||
resp, err := retryableHttpClient.Get(pdtmNucleiVersionEndpoint + "?" + getpdtmParams(isSDK))
|
resp, err := retryableHttpClient.Get(pdtmNucleiVersionEndpoint + "?" + getpdtmParams(isSDK))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user