Only update when changed is True

This commit is contained in:
2024-02-11 15:56:48 +01:00
parent cdfb4aef5f
commit 776881775b

View File

@@ -48,7 +48,7 @@ def main():
publicAddress()
changed = cloudflareDDNS()
if changed:
if changed is True:
notify("IP changed to: {}. Updating all cloudflare zones!".format(currentIP))
updateAllZones(recordedIP, currentIP)