diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server/config.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp index 9f2e688..9f9e9fb 100644 --- a/server/server/config.cpp +++ b/server/server/config.cpp @@ -203,7 +203,7 @@ void config::load_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, country, state, city; int port = 0; @@ -275,7 +275,7 @@ void config::load_static_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, label; int port = 0, position = 0; @@ -340,7 +340,7 @@ void config::load_firewall_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; firewall_list.push_back(line); p2 = cfg_str.find(';', p1); } @@ -369,7 +369,7 @@ void config::load_deleted_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; deleted_list.push_back(line); p2 = cfg_str.find(';', p1); } |