📈 Increase sync frequency to 5 minutes to prevent potential gateway timeout
This commit is contained in:
parent
1f6daa5968
commit
458559d52c
@ -187,13 +187,13 @@ if __name__ == '__main__':
|
|||||||
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")
|
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(len(sys.argv) > 1):
|
||||||
if(sys.argv[1] == "--repeat"):
|
if(sys.argv[1] == "--repeat"):
|
||||||
delay = 60
|
delay = 5*60
|
||||||
if ipv4_enabled and ipv6_enabled:
|
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:
|
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:
|
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()
|
next_time = time.time()
|
||||||
killer = GracefulExit()
|
killer = GracefulExit()
|
||||||
prev_ips = None
|
prev_ips = None
|
||||||
|
|||||||
Reference in New Issue
Block a user