From e6aabffc2287b7158728131b86933aab92fd435f Mon Sep 17 00:00:00 2001 From: Sajad Parra Date: Tue, 21 Dec 2021 19:02:09 +0530 Subject: [PATCH] add missing custom rdap server assign if present in the template --- v2/pkg/protocols/whois/whois.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/pkg/protocols/whois/whois.go b/v2/pkg/protocols/whois/whois.go index 6da0305f..5f46dc43 100644 --- a/v2/pkg/protocols/whois/whois.go +++ b/v2/pkg/protocols/whois/whois.go @@ -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")