DYNDNS protocol from now on accepts alternative update server name.
[bpdyndnsd] / src / service_dyndns.hpp
index 4be4e12..fb0da1c 100644 (file)
@@ -30,6 +30,7 @@ private:
         ar & boost::serialization::base_object<Service>(*this);
     }
 
+    std::string AlternativeServer;  // Needed for NO-IP
     std::string BaseUrl;
 
     HTTPHelper::Ptr HTTPHelp;
@@ -42,7 +43,7 @@ public:
 
     ServiceDyndns();
 
-    ServiceDyndns(const std::string& _protocol, const std::string& _hostname, const std::string& _login, const std::string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int dns_cache_ttl, const std::string& proxy, const int proxy_port);
+    ServiceDyndns(const std::string& _protocol, const std::string& _hostname, const std::string& _login, const std::string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int dns_cache_ttl, const std::string& proxy, const int proxy_port, const std::string& _alternative_server = "");
 
     ~ServiceDyndns();