add dns protocol ratelimit (#2763)

* add dns protocol ratelimit

* move dns ratelimit to just before sending the request
This commit is contained in:
Sajad 2022-10-29 07:59:13 +05:30 committed by GitHub
parent 74bd89dec6
commit e163a301b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,8 @@ func (request *Request) ExecuteWithResults(input *contextargs.Context, metadata,
}
}
request.options.RateLimiter.Take()
// Send the request to the target servers
response, err := dnsClient.Do(compiledRequest)
if err != nil {