mirror of
				https://github.com/KevinMidboe/cloudflare-ddns.git
				synced 2025-10-29 17:40:17 +00:00 
			
		
		
		
	Only update when changed is True
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							| @@ -48,7 +48,7 @@ def main(): | |||||||
|     publicAddress() |     publicAddress() | ||||||
|     changed = cloudflareDDNS() |     changed = cloudflareDDNS() | ||||||
|  |  | ||||||
|     if changed: |     if changed is True: | ||||||
|         notify("IP changed to: {}. Updating all cloudflare zones!".format(currentIP)) |         notify("IP changed to: {}. Updating all cloudflare zones!".format(currentIP)) | ||||||
|         updateAllZones(recordedIP, currentIP) |         updateAllZones(recordedIP, currentIP) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user