mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-30 08:28:10 +00:00
feat: mihomo VLESS 支持 encryption
This commit is contained in:
3 files changed
+10
-9
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.20.24",
|
||||
"version": "2.20.25",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -688,6 +688,7 @@ function URI_VLESS() {
|
||||
if (['websocket'].includes(proxy.network)) {
|
||||
proxy.network = 'ws';
|
||||
}
|
||||
|
||||
if (proxy.network && !['tcp', 'none'].includes(proxy.network)) {
|
||||
const opts = {};
|
||||
const host = params.host ?? params.obfsParam;
|
||||
@@ -743,12 +744,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;
|
||||
}
|
||||
}
|
||||
if (params.encryption) {
|
||||
proxy.encryption = params.encryption;
|
||||
}
|
||||
if (params.pqv) {
|
||||
proxy._pqv = params.pqv;
|
||||
}
|
||||
|
||||
return proxy;
|
||||
|
||||
@@ -61,8 +61,8 @@ function vless(proxy) {
|
||||
pqv = `&pqv=${encodeURIComponent(proxy._pqv)}`;
|
||||
}
|
||||
let encryption = '';
|
||||
if (proxy._encryption) {
|
||||
encryption = `&encryption=${encodeURIComponent(proxy._encryption)}`;
|
||||
if (proxy.encryption) {
|
||||
encryption = `&encryption=${encodeURIComponent(proxy.encryption)}`;
|
||||
}
|
||||
let vlessType = proxy.network;
|
||||
if (proxy.network === 'ws' && proxy['ws-opts']?.['v2ray-http-upgrade']) {
|
||||
|
||||
Reference in new issue
Block a user