mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
Do not wait before updating IPs for the first time (#51)
This commit is contained in:
@@ -197,11 +197,11 @@ if __name__ == '__main__':
|
||||
next_time = time.time()
|
||||
killer = GracefulExit()
|
||||
prev_ips = None
|
||||
while True:
|
||||
while True:
|
||||
updateIPs(getIPs())
|
||||
if killer.kill_now.wait(delay):
|
||||
break
|
||||
updateIPs(getIPs())
|
||||
else:
|
||||
print("❓ Unrecognized parameter '" + sys.argv[1] + "'. Stopping now.")
|
||||
else:
|
||||
updateIPs(getIPs())
|
||||
updateIPs(getIPs())
|
||||
|
||||
Reference in New Issue
Block a user