From 1a6ffc9681aef7498661ff40742d7e51c67dbd3b Mon Sep 17 00:00:00 2001 From: Zachary Milonas <25948390+zmilonas@users.noreply.github.com> Date: Sun, 11 Apr 2021 15:44:18 +0200 Subject: [PATCH] Do not wait before updating IPs for the first time (#51) --- cloudflare-ddns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index 051031f..0c91013 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -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()) \ No newline at end of file + updateIPs(getIPs())