small correction

dev
Mzack9999 2020-04-24 01:13:19 +02:00
parent f2a8ab982f
commit f297f87cec
1 changed files with 1 additions and 2 deletions

View File

@ -388,8 +388,7 @@ func (r *Runner) makeHTTPClientByRequest(request interface{}) *retryablehttp.Cli
// makeHTTPClient creates a HTTP client with configurable redirect field
func (r *Runner) makeDNSClientByRequest(request interface{}) *retryabledns.Client {
retries := r.options.Retries
// Request is HTTP
if dnsRequest, ok := request.(requests.DNSRequest); ok {
if dnsRequest, ok := request.(*requests.DNSRequest); ok {
retries = dnsRequest.Retries
}