Added possibility to override automatic WAN IP detection
[bpdyndnsd] / src / config.hpp
index a5b75f3..bf836cc 100644 (file)
@@ -52,6 +52,7 @@ private:
     bool DialupMode;
     int DialupBurstPeriodSeconds;
     int DialupSleepSeconds;
+    std::string WanIpOverride;
 
     Service::Ptr create_service(const std::string& protocol, const std::string& server, const std::string& hostname, const std::string& login, const std::string& password, const int update_interval, const int max_updates_within_interval, const int dns_cache_ttl);
     int load_main_config_file(const std::string& full_filename);
@@ -113,6 +114,8 @@ public:
     bool get_dialup_mode() const;
     int get_dialup_burst_period_seconds() const;
     int get_dialup_sleep_seconds() const;
+
+    std::string get_wan_ip_override() const;
 };
 
 #endif