Skip to content

Commit

Permalink
📈 Increase sync frequency to 5 minutes to prevent potential gateway t…
Browse files Browse the repository at this point in the history
…imeout
  • Loading branch information
Timothy Miller committed Mar 22, 2021
1 parent 1f6daa5 commit 458559d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudflare-ddns.py
Expand Up @@ -187,13 +187,13 @@ def updateIPs(ips):
print("⚙️ Individually disable IPv4 or IPv6 with new config.json options. Read more about it here: https://github.com/timothymiller/cloudflare-ddns/blob/master/README.md")
if(len(sys.argv) > 1):
if(sys.argv[1] == "--repeat"):
delay = 60
delay = 5*60
if ipv4_enabled and ipv6_enabled:
print("🕰️ Updating IPv4 (A) & IPv6 (AAAA) records every minute")
print("🕰️ Updating IPv4 (A) & IPv6 (AAAA) records every 5 minutes")
elif ipv4_enabled and not ipv6_enabled:
print("🕰️ Updating IPv4 (A) records every minute")
print("🕰️ Updating IPv4 (A) records every 5 minutes")
elif ipv6_enabled and not ipv4_enabled:
print("🕰️ Updating IPv6 (AAAA) records every minute")
print("🕰️ Updating IPv6 (AAAA) records every 5 minutes")
next_time = time.time()
killer = GracefulExit()
prev_ips = None
Expand Down

0 comments on commit 458559d

Please sign in to comment.