mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 23:40:30 +00:00
feat: Stash 支持 MASQUE
This commit is contained in:
3 files changed
+9
-5
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user