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

View File

@@ -286,8 +286,8 @@ if __name__ == '__main__':
print( print(
"⚙️ No config detected for 'ttl' - defaulting to 300 seconds (5 minutes)") "⚙️ No config detected for 'ttl' - defaulting to 300 seconds (5 minutes)")
if ttl < 30: if ttl < 30:
ttl = 30 # ttl = 1 #
print("⚙️ TTL is too low - defaulting to 30 seconds") print("⚙️ TTL is too low - defaulting to 1 (auto)")
if (len(sys.argv) > 1): if (len(sys.argv) > 1):
if (sys.argv[1] == "--repeat"): if (sys.argv[1] == "--repeat"):
if ipv4_enabled and ipv6_enabled: if ipv4_enabled and ipv6_enabled:
@@ -310,4 +310,4 @@ if __name__ == '__main__':
print("❓ Unrecognized parameter '" + print("❓ Unrecognized parameter '" +
sys.argv[1] + "'. Stopping now.") sys.argv[1] + "'. Stopping now.")
else: else:
updateIPs(getIPs()) updateIPs(getIPs())