diff --git a/internal/runner/inputs.go b/internal/runner/inputs.go index 4ead9946e..3d51ca7e8 100644 --- a/internal/runner/inputs.go +++ b/internal/runner/inputs.go @@ -31,6 +31,11 @@ func (r *Runner) initializeTemplatesHTTPInput() (*hybrid.HybridMap, error) { gologger.Info().Msgf("Running httpx on input host") httpxOptions := httpx.DefaultOptions + if r.options.AliveHttpProxy != "" { + httpxOptions.Proxy = r.options.AliveHttpProxy + } else if r.options.AliveSocksProxy != "" { + httpxOptions.Proxy = r.options.AliveSocksProxy + } httpxOptions.RetryMax = r.options.Retries httpxOptions.Timeout = time.Duration(r.options.Timeout) * time.Second httpxOptions.NetworkPolicy = protocolstate.NetworkPolicy