Fix a bug that some exported Surfboard configuration may stop working

This commit is contained in:
Tindy X committed 2020-03-12 18:45:59 +08:00
1 parent 22582a9bd5
commit cb94527920
1 file changed
+2 -2
+2 -2
View File
@@ -1021,9 +1021,9 @@ std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, s
proxy = "vmess, " + hostname + ", " + port + ", username=" + id + ", tls=" + (tlssecure ? "true" : "false");
if(transproto == "ws")
{
proxy += ", ws=true, ws-path=" + path + ", ws-headers=Host:\"" + host + "\"";
proxy += ", ws=true, ws-path=" + path + ", ws-headers=Host:" + host;
if(edge.size())
proxy += "|Edge:\"" + edge + "\"";
proxy += "|Edge:" + edge;
}
if(ext.skip_cert_verify)
proxy += ", skip-cert-verify=1";