Skip to content

Commit a8ffdd4

Browse files
committed
feat: mihomo VLESS 支持 encryption
1 parent 7450a8c commit a8ffdd4

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.24",
3+
"version": "2.20.25",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/parsers/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ function URI_VLESS() {
688688
if (['websocket'].includes(proxy.network)) {
689689
proxy.network = 'ws';
690690
}
691+
691692
if (proxy.network && !['tcp', 'none'].includes(proxy.network)) {
692693
const opts = {};
693694
const host = params.host ?? params.obfsParam;
@@ -743,12 +744,12 @@ function URI_VLESS() {
743744
if (params.extra) {
744745
proxy._extra = params.extra;
745746
}
746-
if (params.encryption) {
747-
proxy._encryption = params.encryption;
748-
}
749-
if (params.pqv) {
750-
proxy._pqv = params.pqv;
751-
}
747+
}
748+
if (params.encryption) {
749+
proxy.encryption = params.encryption;
750+
}
751+
if (params.pqv) {
752+
proxy._pqv = params.pqv;
752753
}
753754

754755
return proxy;

backend/src/core/proxy-utils/producers/uri.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function vless(proxy) {
6161
pqv = `&pqv=${encodeURIComponent(proxy._pqv)}`;
6262
}
6363
let encryption = '';
64-
if (proxy._encryption) {
65-
encryption = `&encryption=${encodeURIComponent(proxy._encryption)}`;
64+
if (proxy.encryption) {
65+
encryption = `&encryption=${encodeURIComponent(proxy.encryption)}`;
6666
}
6767
let vlessType = proxy.network;
6868
if (proxy.network === 'ws' && proxy['ws-opts']?.['v2ray-http-upgrade']) {

0 commit comments

Comments
 (0)