feat: Stash 支持 MASQUE

This commit is contained in:
xream committed 2026-08-11 19:15:53 +08:00
1 parent 536bb1cd3e
commit 0dc202e7c9
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.36.34",
"version": "2.36.35",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"packageManager": "pnpm@11.0.9",
+4 -1
View File
@@ -1110,7 +1110,10 @@ function lastParse(proxy) {
}
}
}
if (['ws', 'http', 'h2'].includes(proxy.network)) {
if (
['ws', 'http', 'h2'].includes(proxy.network) &&
!['masque'].includes(proxy.type)
) {
if (
['ws', 'h2'].includes(proxy.network) &&
!proxy[`${proxy.network}-opts`]?.path
@@ -36,6 +36,7 @@ export default function Stash_Producer() {
'anytls',
'tailscale',
'trusttunnel',
'masque',
].includes(proxy.type) ||
(proxy.type === 'ss' &&
![
@@ -262,9 +263,9 @@ export default function Stash_Producer() {
proxy['h2-opts']?.headers?.host ??
proxy['h2-opts']?.headers?.Host;
if (
(isPresent(proxy, 'h2-opts.host') ||
isPresent(proxy, 'h2-opts.headers.host') ||
isPresent(proxy, 'h2-opts.headers.Host'))
isPresent(proxy, 'h2-opts.host') ||
isPresent(proxy, 'h2-opts.headers.host') ||
isPresent(proxy, 'h2-opts.headers.Host')
) {
proxy['h2-opts'].host = Array.isArray(host)
? host