Skip to content

Commit 1133c8b

Browse files
committed
feat(runner): respect alive proxy to probe
with httpx Signed-off-by: Dwi Siswanto <[email protected]>
1 parent 7c87285 commit 1133c8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/runner/inputs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ func (r *Runner) initializeTemplatesHTTPInput() (*hybrid.HybridMap, error) {
3131
gologger.Info().Msgf("Running httpx on input host")
3232

3333
httpxOptions := httpx.DefaultOptions
34+
if r.options.AliveHttpProxy != "" {
35+
httpxOptions.Proxy = r.options.AliveHttpProxy
36+
} else if r.options.AliveSocksProxy != "" {
37+
httpxOptions.Proxy = r.options.AliveSocksProxy
38+
}
3439
httpxOptions.RetryMax = r.options.Retries
3540
httpxOptions.Timeout = time.Duration(r.options.Timeout) * time.Second
3641
httpxOptions.NetworkPolicy = protocolstate.NetworkPolicy

0 commit comments

Comments
 (0)