1
0
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:
Sven Luijten
2020-08-27 22:45:58 +02:00
committed by GitHub
parent d6dd13820f
commit ca136992f8

View File

@ -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"
}
}