Fix VMess cipher support for Loon configurations

This commit is contained in:
Tindy X committed 2020-02-21 21:53:57 +08:00
1 parent c686fa449a
commit aaffdbf3fc
1 file changed
+3
+3
View File
@@ -2218,6 +2218,9 @@ std::string netchToLoon(std::vector<nodeInfo> &nodes, std::string &base_conf, st
edge = GetMember(json, "Edge");
path = GetMember(json, "Path");
tlssecure = GetMember(json, "TLSSecure") == "true";
if(method == "auto")
method = "chacha20-ietf-poly1305";
proxy = "vmess," + hostname + "," + port + "," + method + ",\"" + id + "\",over-tls:" + (tlssecure ? "true" : "false");
if(tlssecure)
proxy += ",tls-name:" + host;