diff options
Diffstat (limited to 'server/server/config.h')
-rwxr-xr-x | server/server/config.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/server/server/config.h b/server/server/config.h index f19cae1..4afa63d 100755 --- a/server/server/config.h +++ b/server/server/config.h @@ -128,6 +128,7 @@ public: void load_deleted_list(char* pth = NULL); void load_servers_list(char* pth = NULL); bool ignore_ssl_errors(); + bool log_speed(); const std::string& bind_ip(); const std::string& log_path(); const std::string& proxifier_path(); @@ -146,22 +147,12 @@ public: private: struct cfg_data { - int ban_time, conn_count, check_interval, debug, dos_conn_count, conn_time, config_reload_interval, proxy_check_interval; - bool ignore_ssl_errors; + int ban_time, conn_count, check_interval, dos_conn_count, conn_time, config_reload_interval, proxy_check_interval; + bool ignore_ssl_errors, log_speed, debug; std::string log_path, bind_ip, dos_log_path, speed_test_file_url; - cfg_data() - { - ignore_ssl_errors = false; - ban_time = conn_time = 60; - config_reload_interval = 600; - proxy_check_interval = 3600; - conn_count = 30; - check_interval = 30; - debug = 0; - dos_conn_count = 200; - bind_ip = "0.0.0.0"; - speed_test_file_url = "http://google.com"; - } + cfg_data(): ban_time(60), check_interval(30), dos_conn_count(200), conn_time(60), config_reload_interval(600), proxy_check_interval(3600), + ignore_ssl_errors(false), log_speed(false), debug(false) + {} }; std::string config_path, cli_config_path; const int get_int(const std::string& data, const char* var, int default_); |