fix: use HTTP client from config. (#1112)
This commit is contained in:
parent
31baa53761
commit
ae818a411c
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue