mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CLOUDFLARE: Set TTL to 1 for Cloudflare page rules (#828)
This commit is contained in:
@ -384,6 +384,7 @@ func (c *CloudflareAPI) preprocessConfig(dc *models.DomainConfig) error {
|
||||
}
|
||||
rec.SetTarget(fmt.Sprintf("%s,%d,%d", rec.GetTargetField(), currentPrPrio, code))
|
||||
currentPrPrio++
|
||||
rec.TTL = 1
|
||||
rec.Type = "PAGE_RULE"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user