Merge pull request #1418 from projectdiscovery/fix-whois-custom-server

Add missing custom rdap server assign if present in the template
dev
Sandeep Singh 2021-12-21 21:18:14 +05:30 committed by GitHub
commit c39b696559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ func (request *Request) ExecuteWithResults(input string, dynamicValues, previous
query := replacer.Replace(request.Query, variables)
// build an rdap request
rdapReq := rdap.NewAutoRequest(query)
rdapReq.Server = request.parsedServerURL
res, err := request.client.Do(rdapReq)
if err != nil {
return errors.Wrap(err, "could not make whois request")