mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
restore prior cloudflare auto-ttl behavior when ttl is 300
This commit is contained in:
@ -297,7 +297,7 @@ func (c *CloudflareApi) preprocessConfig(dc *models.DomainConfig) error {
|
|||||||
if rec.Metadata == nil {
|
if rec.Metadata == nil {
|
||||||
rec.Metadata = map[string]string{}
|
rec.Metadata = map[string]string{}
|
||||||
}
|
}
|
||||||
if rec.TTL == 0 { // Please read: https://github.com/StackExchange/dnscontrol/issues/490
|
if rec.TTL == 0 || rec.TTL == 300{
|
||||||
rec.TTL = 1
|
rec.TTL = 1
|
||||||
}
|
}
|
||||||
if rec.TTL != 1 && rec.TTL < 120 {
|
if rec.TTL != 1 && rec.TTL < 120 {
|
||||||
|
Reference in New Issue
Block a user