diff --git a/src/generator/config/subexport.cpp b/src/generator/config/subexport.cpp index eb2c77dde..36f6269a5 100644 --- a/src/generator/config/subexport.cpp +++ b/src/generator/config/subexport.cpp @@ -1637,7 +1637,7 @@ void proxyToQuanX(std::vector &nodes, INIReader &ini, std::vector &nodes, INIReader &ini, std::vector &nodes) singleproxy["path"] >>= path; break; } - vlessConstruct(node, group, ps, server, port, uuid, sni, alpn, type, net, mode, host, path, fingerprint, flow, xtls, public_key, short_id, client_fingerprint, udp, tfo, scv, underlying_proxy); + tls = safe_as(singleproxy["tls"]) == "true" ? "tls" : ""; + vlessConstruct(node, group, ps, server, port, uuid, sni, alpn, type, net, mode, host, path, fingerprint, flow, xtls, public_key, short_id, client_fingerprint, udp, tfo, scv, underlying_proxy); + node.TLSSecure = tls == "tls"; // Assign new parameters to node for VLESS node.IpVersion = ip_version; node.EchEnable = ech_enable; @@ -2124,7 +2126,7 @@ void explodeAnyTLS(std::string anytls, Proxy &node) { } void explodeStdVLESS(std::string vless, Proxy &node) { - std::string add, port, uuid, sni, alpn, net, type, mode, host, path, fingerprint, remarks, addition, flow, xtls, public_key, short_id; + std::string add, port, uuid, sni, alpn, net, type, mode, host, path, fingerprint, remarks, addition, flow, xtls, public_key, short_id, security, tls; tribool tfo, scv; std::string decoded, userinfo, hostinfo; string_array user_parts; @@ -2185,6 +2187,7 @@ void explodeStdVLESS(std::string vless, Proxy &node) { flow = getUrlArg(addition, "flow"); xtls = getUrlArg(addition, "xtls"); public_key = getUrlArg(addition, "pbk"); + security = getUrlArg(addition, "security"); short_id = getUrlArg(addition, "sid"); tfo = tribool(getUrlArg(addition, "tfo")); std::string insecure_val = getUrlArg(addition, "insecure"); @@ -2224,7 +2227,7 @@ void explodeStdVLESS(std::string vless, Proxy &node) { if (remarks.empty()) remarks = add + ":" + port; - + node.TLSSecure = security == "tls" || security == "reality"; vlessConstruct(node, VLESS_DEFAULT_GROUP, remarks, add, port, uuid, sni, alpn, type, net, mode, host, path, fingerprint, flow, xtls, public_key, short_id, "", tribool(), tfo, scv, ""); }