Skip to content

Commit

Permalink
FIX:empty ttl cause cloudflare api error
Browse files Browse the repository at this point in the history
  • Loading branch information
albreis committed Aug 28, 2022
1 parent f2f4815 commit 1f89198
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/usr/sbin/cloudflare-companion
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def point_domain(name, domain_info):

content = domain_info['content']

if(domain_info['ttl'] == ''):
domain_info['ttl'] = 15000

data = {
u'type': record_type,
u'name': name,
Expand Down

0 comments on commit 1f89198

Please sign in to comment.