mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix SNI host missing in Surge configurations
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -1181,7 +1181,10 @@ std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, s
|
||||
case SPEEDTEST_MESSAGE_FOUNDTROJAN:
|
||||
if(surge_ver < 4)
|
||||
continue;
|
||||
host = GetMember(json, "Host");
|
||||
proxy = "trojan, " + hostname + ", " + port + ", password=" + password;
|
||||
if(host.size())
|
||||
proxy += ", sni=" + host;
|
||||
if(ext.skip_cert_verify)
|
||||
proxy += ", skip-cert-verify=1";
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user