From ae818a411c2333df0c3ba834bca4880c708c5a71 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Fri, 17 Apr 2020 09:46:42 +0200 Subject: [PATCH] fix: use HTTP client from config. (#1112) --- providers/dns/rimuhosting/rimuhosting.go | 4 ++++ providers/dns/zonomi/zonomi.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/providers/dns/rimuhosting/rimuhosting.go b/providers/dns/rimuhosting/rimuhosting.go index 1ff56b5c..4fcee98d 100644 --- a/providers/dns/rimuhosting/rimuhosting.go +++ b/providers/dns/rimuhosting/rimuhosting.go @@ -79,6 +79,10 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) { client := rimuhosting.NewClient(config.APIKey) client.BaseURL = rimuhosting.DefaultRimuHostingBaseURL + if config.HTTPClient != nil { + client.HTTPClient = config.HTTPClient + } + return &DNSProvider{config: config, client: client}, nil } diff --git a/providers/dns/zonomi/zonomi.go b/providers/dns/zonomi/zonomi.go index cc8c6999..688e1619 100644 --- a/providers/dns/zonomi/zonomi.go +++ b/providers/dns/zonomi/zonomi.go @@ -79,6 +79,10 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) { client := rimuhosting.NewClient(config.APIKey) client.BaseURL = rimuhosting.DefaultZonomiBaseURL + if config.HTTPClient != nil { + client.HTTPClient = config.HTTPClient + } + return &DNSProvider{config: config, client: client}, nil }