mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 17:25:02 +00:00
Fix VMess cipher support for Loon configurations
This commit is contained in:
1 file changed
+3
@@ -2218,6 +2218,9 @@ std::string netchToLoon(std::vector<nodeInfo> &nodes, std::string &base_conf, st
|
|||||||
edge = GetMember(json, "Edge");
|
edge = GetMember(json, "Edge");
|
||||||
path = GetMember(json, "Path");
|
path = GetMember(json, "Path");
|
||||||
tlssecure = GetMember(json, "TLSSecure") == "true";
|
tlssecure = GetMember(json, "TLSSecure") == "true";
|
||||||
|
if(method == "auto")
|
||||||
|
method = "chacha20-ietf-poly1305";
|
||||||
|
|
||||||
proxy = "vmess," + hostname + "," + port + "," + method + ",\"" + id + "\",over-tls:" + (tlssecure ? "true" : "false");
|
proxy = "vmess," + hostname + "," + port + "," + method + ",\"" + id + "\",over-tls:" + (tlssecure ? "true" : "false");
|
||||||
if(tlssecure)
|
if(tlssecure)
|
||||||
proxy += ",tls-name:" + host;
|
proxy += ",tls-name:" + host;
|
||||||
|
|||||||
Reference in new issue
Block a user