Improve logging when IP update is not allowed (log once on log level 0 if we changed...
[bpdyndnsd] / src / updater.cpp
index 875e03d..84247d5 100644 (file)
@@ -271,7 +271,7 @@ void Updater::update_services(bool changed_to_online) const
         {
             // Update
             Log->print_update_service(hostname, ip_dns_recheck, ip_last_update, ip_host, lastupdated);
-            service->update(ip_host,current_time);
+            service->update(ip_host, current_time, changed_to_online);
         }
         else
         {
@@ -281,7 +281,7 @@ void Updater::update_services(bool changed_to_online) const
             {
                 // Update
                 Log->print_update_service_ttl_expired(hostname, ip_dns_recheck, ip_last_update, ip_host, lastupdated, dns_cache_ttl, current_time);
-                service->update(ip_host,current_time);
+                service->update(ip_host, current_time, changed_to_online);
             }
             else
             {