summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xserver/server/config.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp
index 7e46bdc..188c04b 100755
--- a/server/server/config.cpp
+++ b/server/server/config.cpp
@@ -211,7 +211,7 @@ void config::load_proxy_list(char *pth)
int port = 0;
if(line.find('@') != std::string::npos)
{
- lp2 = line.find("//:", lp1);
+ lp2 = line.find("://", lp1);
std::string s_type = line.substr(lp1, lp2-lp1);
if(s_type == "http")
type = HTTP;
@@ -245,7 +245,7 @@ void config::load_proxy_list(char *pth)
}
else
{
- lp2 = line.find("//:", lp1);
+ lp2 = line.find("://", lp1);
std::string s_type = line.substr(lp1, lp2-lp1);
if(s_type == "http")
type = HTTP;
@@ -306,7 +306,7 @@ void config::load_static_proxy_list(char *pth)
int port = 0, position = 0;
if(line.find('@') != std::string::npos)
{
- lp2 = line.find("//:", lp1);
+ lp2 = line.find("://", lp1);
std::string s_type = line.substr(lp1, lp2-lp1);
if(s_type == "http")
type = HTTP;
@@ -336,7 +336,7 @@ void config::load_static_proxy_list(char *pth)
}
else
{
- lp2 = line.find("//:", lp1);
+ lp2 = line.find("://", lp1);
std::string s_type = line.substr(lp1, lp2-lp1);
if(s_type == "http")
type = HTTP;