cloudflare: fix panic when accessing record cache (#1005)

This commit is contained in:
Dominik Menke 2019-11-07 11:50:44 +01:00 committed by Ludovic Fernandez
parent fa5555d3f4
commit e6ff557596

View file

@ -105,7 +105,11 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
return nil, fmt.Errorf("cloudflare: %v", err)
}
return &DNSProvider{client: client, config: config}, nil
return &DNSProvider{
client: client,
config: config,
recordIDs: make(map[string]string),
}, nil
}
// Timeout returns the timeout and interval to use when checking for DNS propagation.