Skip to content

Commit

Permalink
CLOUDFLAREAPI: No longer treat TTL=300 as special
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Jan 15, 2025
1 parent ab00797 commit c09b885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/cloudflare/cloudflareProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ func (c *cloudflareProvider) preprocessConfig(dc *models.DomainConfig) error {
rec.Metadata = map[string]string{}
}
// cloudflare uses "1" to mean "auto-ttl"
// if we get here and ttl is not specified (or is the dnscontrol default of 300),
// if we get here and ttl is not specified
// use automatic mode instead.
if rec.TTL == 0 || rec.TTL == 300 {
if rec.TTL == 0 {
rec.TTL = 1
}
if rec.TTL != 1 && rec.TTL < 60 {
Expand Down

0 comments on commit c09b885

Please sign in to comment.