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())