mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix support for Socks 5 proxies.
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -125,7 +125,7 @@ std::string socksConstruct(std::string remarks, std::string server, std::string
|
|||||||
rapidjson::Writer<rapidjson::StringBuffer> writer(sb);
|
rapidjson::Writer<rapidjson::StringBuffer> writer(sb);
|
||||||
writer.StartObject();
|
writer.StartObject();
|
||||||
writer.Key("Type");
|
writer.Key("Type");
|
||||||
writer.String("Socks");
|
writer.String("Socks5");
|
||||||
writer.Key("Remark");
|
writer.Key("Remark");
|
||||||
writer.String(remarks.data());
|
writer.String(remarks.data());
|
||||||
writer.Key("Hostname");
|
writer.Key("Hostname");
|
||||||
@@ -417,7 +417,7 @@ std::string netchToClash(std::vector<nodeInfo> &nodes, std::string &baseConf, st
|
|||||||
}
|
}
|
||||||
else if(type == "Socks5")
|
else if(type == "Socks5")
|
||||||
{
|
{
|
||||||
singleproxy["type"] = "socks";
|
singleproxy["type"] = "socks5";
|
||||||
singleproxy["username"] = username;
|
singleproxy["username"] = username;
|
||||||
}
|
}
|
||||||
else if(type == "HTTP" || type == "HTTPS")
|
else if(type == "HTTP" || type == "HTTPS")
|
||||||
|
|||||||
Reference in new issue
Block a user