diff --git a/v2/internal/runner/processor.go b/v2/internal/runner/processor.go index 708fdeab1..a9376f3bb 100644 --- a/v2/internal/runner/processor.go +++ b/v2/internal/runner/processor.go @@ -72,7 +72,7 @@ func (r *Runner) processTemplateWithList(p *progress.Progress, template *templat Decolorizer: r.decolorizer, StopAtFirstMatch: r.options.StopAtFirstMatch, PF: r.pf, - Dialer: &r.dialer, + Dialer: r.dialer, }) } diff --git a/v2/pkg/executer/executer_http.go b/v2/pkg/executer/executer_http.go index b768f4518..01210e2f9 100644 --- a/v2/pkg/executer/executer_http.go +++ b/v2/pkg/executer/executer_http.go @@ -89,7 +89,7 @@ type HTTPOptions struct { ColoredOutput bool StopAtFirstMatch bool PF *projetctfile.ProjectFile - Dialer *cache.DialerFunc + Dialer cache.DialerFunc } // NewHTTPExecuter creates a new HTTP executer from a template @@ -598,7 +598,7 @@ func makeHTTPClient(proxyURL *url.URL, options *HTTPOptions) (*retryablehttp.Cli maxRedirects := options.BulkHTTPRequest.MaxRedirects transport := &http.Transport{ - DialContext: *options.Dialer, + DialContext: options.Dialer, MaxIdleConns: maxIdleConns, MaxIdleConnsPerHost: maxIdleConnsPerHost, MaxConnsPerHost: maxConnsPerHost,