Skip webcheck idle period check if we just went online. Improve webcheck logging
[bpdyndnsd] / src / updater.cpp
index 852b46b..875e03d 100644 (file)
@@ -223,7 +223,7 @@ void Updater::update_services(bool changed_to_online) const
     list<Service::Ptr> services = ServiceHolder->get_services();
 
     // Get the actual IP of this host.
-    string ip_host = IPAddrHelp->get_actual_ip(Conf->get_webcheck_enabled());
+    string ip_host = IPAddrHelp->get_actual_ip(Conf->get_webcheck_enabled(), changed_to_online);
     if ( ip_host.empty() )
     {
         Log->print_no_wan_ip(changed_to_online);