summaryrefslogtreecommitdiff
path: root/server/server/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/server/config.h')
-rwxr-xr-x[-rw-r--r--]server/server/config.h41
1 files changed, 40 insertions, 1 deletions
diff --git a/server/server/config.h b/server/server/config.h
index 1c68427..90b9d27 100644..100755
--- a/server/server/config.h
+++ b/server/server/config.h
@@ -25,6 +25,43 @@ public:
city = city_;
}
};
+ enum p_proxy_type {UNKNOWN = -1, HTTPS, SOCKS4, SOCKS5};
+ struct p_proxy_entry
+ {
+ std::string host, login, password;
+ int port, id, options;
+ bool enable_auth;
+ p_proxy_type type;
+ p_proxy_entry()
+ {
+ port = 3128;
+ id = 100;
+ options = 0;
+ type = UNKNOWN;
+ enable_auth = false;
+ }
+ };
+
+ struct p_proxy_chain
+ {
+ std::string name;
+ int id;
+ struct chain_entry
+ {
+ int id;
+ bool enabled;
+ chain_entry()
+ {
+ id = 100;
+ enabled = true;
+ }
+ };
+ std::list<chain_entry> chain;
+ p_proxy_chain()
+ {
+ id = 100;
+ }
+ };
struct static_proxy_entry
{
@@ -117,6 +154,7 @@ public:
bool ignore_ssl_errors();
const std::string& bind_ip();
const std::string& log_path();
+ const std::string& proxifier_path();
const std::string& dos_log_path();
std::list<proxy_entry> *get_proxy_list();
std::list<static_proxy_entry> *get_static_proxy_list();
@@ -129,7 +167,7 @@ private:
{
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;
+ std::string log_path, bind_ip, dos_log_path, proxifier_path;
cfg_data()
{
ignore_ssl_errors = false;
@@ -139,6 +177,7 @@ private:
debug = 0;
dos_conn_count = 200;
bind_ip = "0.0.0.0";
+ proxifier_path = "c:/proxifier";
}
};
struct cli_cfg_data