From 060257fe122746fb2eba6ff2f3c1534bf638d56c Mon Sep 17 00:00:00 2001 From: Suyun <108112549+Suyun114@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:35:04 +0800 Subject: [PATCH] Add TTL set to 1 (auto) --- cloudflare-ddns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index d6a974a..1d56863 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -286,8 +286,8 @@ if __name__ == '__main__': print( "⚙️ No config detected for 'ttl' - defaulting to 300 seconds (5 minutes)") if ttl < 30: - ttl = 30 # - print("⚙️ TTL is too low - defaulting to 30 seconds") + ttl = 1 # + print("⚙️ TTL is too low - defaulting to 1 (auto)") if (len(sys.argv) > 1): if (sys.argv[1] == "--repeat"): if ipv4_enabled and ipv6_enabled: @@ -310,4 +310,4 @@ if __name__ == '__main__': print("❓ Unrecognized parameter '" + sys.argv[1] + "'. Stopping now.") else: - updateIPs(getIPs()) \ No newline at end of file + updateIPs(getIPs())