Add TTL set to 1 (auto)

This commit is contained in:
Suyun 2023-06-01 19:35:04 +08:00 committed by GitHub
parent 6e92fc0d09
commit 060257fe12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
updateIPs(getIPs())