diff --git a/backend/package.json b/backend/package.json index 0da27c8d..de20582e 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.20.22", + "version": "2.20.23", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index c02ae441..cbfab667 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -743,6 +743,12 @@ function URI_VLESS() { if (params.extra) { proxy._extra = params.extra; } + if (params.encryption) { + proxy._encryption = params.encryption; + } + if (params.pqv) { + proxy._pqv = params.pqv; + } } return proxy; diff --git a/backend/src/core/proxy-utils/producers/uri.js b/backend/src/core/proxy-utils/producers/uri.js index cd9e969d..15252314 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -56,6 +56,14 @@ function vless(proxy) { if (proxy._mode) { mode = `&mode=${encodeURIComponent(proxy._mode)}`; } + let pqv = ''; + if (proxy._pqv) { + pqv = `&pqv=${encodeURIComponent(proxy._pqv)}`; + } + let encryption = ''; + if (proxy._encryption) { + encryption = `&encryption=${encodeURIComponent(proxy._encryption)}`; + } let vlessType = proxy.network; if (proxy.network === 'ws' && proxy['ws-opts']?.['v2ray-http-upgrade']) { vlessType = 'httpupgrade'; @@ -111,7 +119,7 @@ function vless(proxy) { proxy.port }?security=${encodeURIComponent( security, - )}${vlessTransport}${alpn}${allowInsecure}${sni}${fp}${flow}${sid}${spx}${pbk}${mode}${extra}#${encodeURIComponent( + )}${vlessTransport}${alpn}${allowInsecure}${sni}${fp}${flow}${sid}${spx}${pbk}${mode}${extra}${pqv}${encryption}#${encodeURIComponent( proxy.name, )}`; }