Skip webcheck idle period check if we just went online. Improve webcheck logging
[bpdyndnsd] / src / ip_addr_helper.hpp
index d1439a6..8615148 100644 (file)
@@ -43,7 +43,7 @@ private:
 
     bool is_local_ipv4(const std::string ip) const;
     bool is_local_ipv6(const std::string ip) const;
-    std::string webcheck_ip();
+    std::string webcheck_ip(bool changed_to_online);
     CURL * init_curl(std::string& curl_writedata_buff, char* curl_err_buff) const;
     int perform_curl_operation(CURL * curl_easy_handle, const char* curl_err_buff, const std::string& actual_url) const;
     std::string parse_ipv4(const std::string& data) const;
@@ -61,7 +61,7 @@ public:
 
     std::string dns_query(const std::string& _hostname) const;
 
-    std::string get_actual_ip( bool use_webcheck );
+    std::string get_actual_ip( bool use_webcheck, bool changed_to_online );
 
     std::string get_local_wan_nic_ip() const;