diff options
Diffstat (limited to 'server/server/config.h')
-rw-r--r-- | server/server/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/server/config.h b/server/server/config.h index 62a75af..5d2eb83 100644 --- a/server/server/config.h +++ b/server/server/config.h @@ -49,18 +49,22 @@ public: const int check_interval(); const int debug(); const int dos_conn_count(); + bool ignore_ssl_errors(); const std::string& bind_ip(); const std::string& log_path(); const std::string& dos_log_path(); std::list<proxy_entry> *get_proxy_list(); std::list<static_proxy_entry> *get_static_proxy_list(); + std::list<std::string> *get_firewall_list(); private: struct cfg_data { int ban_time, conn_count, check_interval, debug, dos_conn_count, conn_time; + bool ignore_ssl_errors; std::string log_path, bind_ip, dos_log_path; cfg_data() { + ignore_ssl_errors = false; ban_time = conn_time = 60; conn_count = 30; check_interval = 30; @@ -72,9 +76,11 @@ private: const std::string get_string(const std::string& data, const char* var, const std::string& default_); void load_proxy_list(char* pth = NULL); void load_static_proxy_list(char* pth = NULL); + void load_firewall_list(char* pth = NULL); cfg_data vars; std::list<proxy_entry> proxy_list; std::list<static_proxy_entry> static_proxy_list; + std::list<std::string> firewall_list; }; #endif
\ No newline at end of file |