From e3c6849a6c24540e4533b1d4bf902006fcdd29ba Mon Sep 17 00:00:00 2001 From: meme-lord Date: Thu, 9 Jan 2025 14:29:45 +0000 Subject: [PATCH 1/2] allow WithNetworkConfig and WithInteractshOptions to be used by NewThreadSafeNucleiEngineCtx --- lib/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/config.go b/lib/config.go index f2decdc14..6e922c52c 100644 --- a/lib/config.go +++ b/lib/config.go @@ -100,7 +100,8 @@ type InteractshOpts interactsh.Options // WithInteractshOptions sets interactsh options func WithInteractshOptions(opts InteractshOpts) NucleiSDKOptions { return func(e *NucleiEngine) error { - if e.mode == threadSafe { + // WithInteractshOptions can be used when creating ThreadSafeNucleiEngine but not after it's initialized + if e.mode == threadSafe && e.interactshOpts != nil { return ErrOptionsNotSupported.Msgf("WithInteractshOptions") } optsPtr := &opts @@ -283,7 +284,8 @@ type NetworkConfig struct { // WithNetworkConfig allows setting network config options func WithNetworkConfig(opts NetworkConfig) NucleiSDKOptions { return func(e *NucleiEngine) error { - if e.mode == threadSafe { + // WithNetworkConfig can be used when creating ThreadSafeNucleiEngine but not after it's initialized + if e.mode == threadSafe && e.hostErrCache != nil { return ErrOptionsNotSupported.Msgf("WithNetworkConfig") } e.opts.Timeout = opts.Timeout From b87715a191836eed89966dab33a34942be9a6a23 Mon Sep 17 00:00:00 2001 From: meme-lord Date: Thu, 30 Oct 2025 15:04:46 +0000 Subject: [PATCH 2/2] Update config.go --- lib/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.go b/lib/config.go index c275750da..581955967 100644 --- a/lib/config.go +++ b/lib/config.go @@ -487,7 +487,7 @@ func EnableMatcherStatus() NucleiSDKOptions { func WithAuthProvider(provider authprovider.AuthProvider) NucleiSDKOptions { return func(e *NucleiEngine) error { e.authprovider = provider - return nilhttps://hypixel.net/bounty + return nil } }