Fixed panic with dialer

dev
Ice3man543 2020-11-01 21:37:36 +05:30
parent 0069847e63
commit f232383c36
2 changed files with 3 additions and 3 deletions

View File

@ -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,
})
}

View File

@ -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,