diff --git a/backend/package.json b/backend/package.json index 47ee17f..859b5ab 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.31", + "version": "2.19.32", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/stash.js b/backend/src/core/proxy-utils/producers/stash.js index eaf1662..7658370 100644 --- a/backend/src/core/proxy-utils/producers/stash.js +++ b/backend/src/core/proxy-utils/producers/stash.js @@ -1,4 +1,5 @@ import { isPresent } from '@/core/proxy-utils/producers/utils'; +import $ from '@/core/app'; export default function Stash_Producer() { const type = 'ALL'; @@ -50,6 +51,11 @@ export default function Stash_Producer() { : proxy.type === 'vless' && proxy['reality-opts']) ) { return false; + } else if (proxy['underlying-proxy'] || proxy['dialer-proxy']) { + $.error( + `Stash 暂不支持前置代理字段. 已过滤节点 ${proxy.name}. 请使用 代理的转发链 https://stash.wiki/proxy-protocols/proxy-groups#relay`, + ); + return false; } return true; }) @@ -257,11 +263,6 @@ export default function Stash_Producer() { } delete proxy['tls-fingerprint']; - if (proxy['underlying-proxy']) { - proxy['dialer-proxy'] = proxy['underlying-proxy']; - } - delete proxy['underlying-proxy']; - if (isPresent(proxy, 'tls') && typeof proxy.tls !== 'boolean') { delete proxy.tls; }