Fix SNI host missing in Surge configurations

This commit is contained in:
Tindy X committed 2020-04-03 23:10:53 +08:00
1 parent a034e872cf
commit bcc4422e87
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1374,7 +1374,7 @@ bool explodeSurge(std::string surge, const std::string &custom_port, int local_p
if(host.empty() && !isIPv4(server) && !isIPv6(server))
host = server;
node.proxyStr = trojanConstruct(remarks, server, port, password, host, false);
node.proxyStr = trojanConstruct(remarks, server, port, password, host, true);
break;
default:
switch(hash_(remarks))