Added possibility to override automatic WAN IP detection
[bpdyndnsd] / src / updater.cpp
index f204b4f..5d32d10 100644 (file)
@@ -228,7 +228,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(), changed_to_online);
+    string ip_host = IPAddrHelp->get_actual_ip(Conf->get_webcheck_enabled(), changed_to_online, Conf->get_wan_ip_override());
     if ( ip_host.empty() )
     {
         Log->print_no_wan_ip(changed_to_online);