disable http probe when passive mode is enabled (#5418)

This commit is contained in:
Dogan Can Bakir 2024-07-22 15:55:02 +03:00 committed by GitHub
parent 9f08fe21d8
commit 1fa0e2b473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -396,6 +396,7 @@ func WithHeaders(headers []string) NucleiSDKOptions {
func EnablePassiveMode() NucleiSDKOptions {
return func(e *NucleiEngine) error {
e.opts.OfflineHTTP = true
e.opts.DisableHTTPProbe = true
return nil
}
}