mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-07 05:34:43 +08:00
CLOUDFLARE: Set TTL to 1 for Cloudflare page rules (#828)
This commit is contained in:
parent
d6dd13820f
commit
ca136992f8
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue