From fab3644b86e4299aa1a2330079a4d5719523abbe Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 18 Oct 2023 23:48:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20Shadowrocket=20Hys?= =?UTF-8?q?teria2=20URI=20=E6=A0=BC=E5=BC=8F=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++---- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 5 ++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 182fc7f..4610089 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,14 @@ Core functionalities: - [x] SSR URI - [x] SSD URI - [x] V2RayN URI +- [x] Hysteria2 URI - [x] QX (SS, SSR, VMess, Trojan, HTTP) - [x] Loon (SS, SSR, VMess, Trojan, HTTP, WireGuard, VLESS) -- [x] Surge (SS, VMess, Trojan, HTTP, TUIC, Snell, SSR(external, only for macOS), WireGuard(Surge to Surge)) -- [x] ShadowRocket (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, WireGuard, Hysteria) -- [x] Clash.Meta (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, WireGuard, Hysteria) +- [x] Surge (SS, VMess, Trojan, HTTP, TUIC, Snell, Hysteria2, SSR(external, only for macOS), WireGuard(Surge to Surge)) +- [x] ShadowRocket (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, Hysteria2) +- [x] Clash.Meta (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, WireGuard, Hysteria, Hysteria2) - [x] Stash (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, WireGuard, Hysteria) -- [x] Clash (SS, SSR, VMess, Trojan, HTTP, Snell) +- [x] Clash (SS, SSR, VMess, Trojan, HTTP, Snell, VLESS, WireGuard) ### Supported Target Platforms diff --git a/backend/package.json b/backend/package.json index 41f8744..c7da15b 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.74", + "version": "2.14.75", "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 27e89ea..d1a3487 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -441,7 +441,10 @@ function URI_Hysteria2() { if (!proxy.sni && params.peer) { proxy.sni = params.peer; } - proxy.obfs = params.obfs; + if (params.obfs && params.obfs !== 'none') { + proxy.obfs = params.obfs; + } + proxy['obfs-password'] = params['obfs-password']; proxy['skip-cert-verify'] = /(TRUE)|1/i.test(params.insecure); proxy.tfo = /(TRUE)|1/i.test(params.fastopen);