add missing custom rdap server assign if present in the template

dev
Sajad Parra 2021-12-21 19:02:09 +05:30
parent 200ea05927
commit e6aabffc22
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")