mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +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);
|
||||
writer.StartObject();
|
||||
writer.Key("Type");
|
||||
writer.String("Socks");
|
||||
writer.String("Socks5");
|
||||
writer.Key("Remark");
|
||||
writer.String(remarks.data());
|
||||
writer.Key("Hostname");
|
||||
@@ -417,7 +417,7 @@ std::string netchToClash(std::vector<nodeInfo> &nodes, std::string &baseConf, st
|
||||
}
|
||||
else if(type == "Socks5")
|
||||
{
|
||||
singleproxy["type"] = "socks";
|
||||
singleproxy["type"] = "socks5";
|
||||
singleproxy["username"] = username;
|
||||
}
|
||||
else if(type == "HTTP" || type == "HTTPS")
|
||||
|
||||
Reference in new issue
Block a user