mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
Cleaned up code smells
This commit is contained in:
@@ -243,12 +243,12 @@ if __name__ == '__main__':
|
|||||||
if(sys.argv[1] == "--repeat"):
|
if(sys.argv[1] == "--repeat"):
|
||||||
if ipv4_enabled and ipv6_enabled:
|
if ipv4_enabled and ipv6_enabled:
|
||||||
print(
|
print(
|
||||||
"🕰️ Updating IPv4 (A) & IPv6 (AAAA) records every " + ttl + " seconds")
|
"🕰️ Updating IPv4 (A) & IPv6 (AAAA) records every " + str(ttl) + " seconds")
|
||||||
elif ipv4_enabled and not ipv6_enabled:
|
elif ipv4_enabled and not ipv6_enabled:
|
||||||
print("🕰️ Updating IPv4 (A) records every " + ttl + " seconds")
|
print("🕰️ Updating IPv4 (A) records every " + str(ttl) + " seconds")
|
||||||
elif ipv6_enabled and not ipv4_enabled:
|
elif ipv6_enabled and not ipv4_enabled:
|
||||||
print("🕰️ Updating IPv6 (AAAA) records every " +
|
print("🕰️ Updating IPv6 (AAAA) records every " +
|
||||||
ttl + " seconds")
|
str(ttl) + " seconds")
|
||||||
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