forked from TrueCloudLab/lego
cloudflare: fix panic when accessing record cache (#1005)
This commit is contained in:
parent
fa5555d3f4
commit
e6ff557596
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
return nil, fmt.Errorf("cloudflare: %v", err)
|
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.
|
// Timeout returns the timeout and interval to use when checking for DNS propagation.
|
||||||
|
|
Loading…
Reference in a new issue