Enhancements

Fix potential crash when stopping the server.
Add support for HTTP nodes in Quantumult X configurations.
This commit is contained in:
Tindy X committed 2020-03-17 18:38:32 +08:00
1 parent 7e489788e3
commit 82ec76261b
3 files changed
+47 -4

No files matched your search

+9
View File
@@ -1707,6 +1707,15 @@ void netchToQuanX(std::vector<nodeInfo> &nodes, INIReader &ini, std::vector<rule
if(obfsparam.size())
proxyStr += ", obfs-host=" + obfsparam;
break;
case SPEEDTEST_MESSAGE_FOUNDHTTP:
id = GetMember(json, "Username");
password = GetMember(json, "Password");
tlssecure = GetMember(json, "TLSSecure") == "true";
proxyStr = "http = " + hostname + ":" + port + ", username=" + (id.size() ? id : "none") + ", password=" + (password.size() ? password : "none");
if(tlssecure)
proxyStr += ", over-tls=true";
break;
case SPEEDTEST_MESSAGE_FOUNDTROJAN:
password = GetMember(json, "Password");
host = GetMember(json, "Host");