diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-01-14 01:40:29 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-01-14 01:40:29 +0200 |
commit | e05401e7f26562fc7d24df0ae48cc8c284b08092 (patch) | |
tree | 5b8384f379eb24d0b423c02045817acf388acd76 | |
parent | 0822cf0b82aff2e265a78f61fcb976c300c44ace (diff) |
fixed speedtest destination url
-rwxr-xr-x | server/server/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp index ddc6983..abfa11d 100755 --- a/server/server/config.cpp +++ b/server/server/config.cpp @@ -68,7 +68,7 @@ void config::load_vars() vars.ignore_ssl_errors = get_int(cfg_str, "IgnoreSslErrors=", 0); vars.config_reload_interval = get_int(cfg_str, "ConfigReloadInterval=", 600); vars.proxy_check_interval = get_int(cfg_str, "ProxyCheckInterval=", 6000); - vars.speed_test_file_url = get_string(cfg_str, "SpeedTestFileUrl=", "http://localhost/speed.test"); + vars.speed_test_file_url = get_string(cfg_str, "SpeedTestFileUrl=", "http://google.com"); } } @@ -114,7 +114,7 @@ config::config(const char *pth): cfg_reload_thr(NULL), speed_test_thr(NULL) load_upload_list(); load_servers_list(); cfg_reload_thr = new boost::thread(boost::bind(reload_config_thread_func, this, &lists_mutex)); - speed_test_thr = new boost::thread(boost::bind(speed_test_thread_func, &proxy_list, &static_proxy_list, "http://sss.chaoslab.ru", &lists_mutex)); + speed_test_thr = new boost::thread(boost::bind(speed_test_thread_func, &proxy_list, &static_proxy_list, vars.speed_test_file_url, &lists_mutex)); } const int config::get_int(const std::string& data, const char* var, int default_) { |