fixing panic caused by uninitialized colorizer (#6315)

This commit is contained in:
Jose De La O Hernandez 2025-07-08 19:04:05 -04:00 committed by GitHub
parent 7e2ec686ae
commit 285c5e1442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,8 +296,8 @@ func WithNetworkConfig(opts NetworkConfig) NucleiSDKOptions {
if e.opts.ShouldUseHostError() {
maxHostError := opts.MaxHostError
if e.opts.TemplateThreads > maxHostError {
gologger.Print().Msgf("[%v] The concurrency value is higher than max-host-error", e.executerOpts.Colorizer.BrightYellow("WRN"))
gologger.Info().Msgf("Adjusting max-host-error to the concurrency value: %d", e.opts.TemplateThreads)
gologger.Warning().Msg(" The concurrency value is higher than max-host-error")
gologger.Warning().Msgf("Adjusting max-host-error to the concurrency value: %d", e.opts.TemplateThreads)
maxHostError = e.opts.TemplateThreads
e.opts.MaxHostError = maxHostError
}