mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-27 23:13:43 +00:00
feat: 支持 AnyTLS 的 disable-reuse
This commit is contained in:
5 files changed
+21
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.36.8",
|
||||
"version": "2.36.9",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"packageManager": "pnpm@11.0.9",
|
||||
|
||||
@@ -1039,6 +1039,9 @@ function lastParse(proxy) {
|
||||
proxy[`${proxy.network}-opts`].path = ['/'];
|
||||
}
|
||||
}
|
||||
if (['anytls'].includes(proxy.type) && proxy['disable-reuse']) {
|
||||
proxy.reuse = false;
|
||||
}
|
||||
if (['', 'off'].includes(proxy.sni)) {
|
||||
proxy['disable-sni'] = true;
|
||||
}
|
||||
|
||||
@@ -252,6 +252,13 @@ export default function ClashMeta_Producer() {
|
||||
ds['reality-opts'] = { 'public-key': '' };
|
||||
}
|
||||
}
|
||||
} else if (
|
||||
['anytls'].includes(proxy.type) &&
|
||||
proxy.reuse != null &&
|
||||
!proxy.reuse
|
||||
) {
|
||||
proxy['disable-reuse'] = true;
|
||||
delete proxy.reuse;
|
||||
}
|
||||
|
||||
if (isPresent(proxy, 'plugin-opts.mux')) {
|
||||
|
||||
@@ -170,6 +170,13 @@ export default function Shadowrocket_Producer() {
|
||||
// delete proxy.sni;
|
||||
}
|
||||
}
|
||||
} else if (
|
||||
['anytls'].includes(proxy.type) &&
|
||||
proxy.reuse != null &&
|
||||
!proxy.reuse
|
||||
) {
|
||||
proxy['disable-reuse'] = true;
|
||||
delete proxy.reuse;
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
@@ -1132,6 +1132,9 @@ const anytlsParser = (proxy = {}) => {
|
||||
`${proxy['min-idle-session']}`,
|
||||
10,
|
||||
);
|
||||
if (proxy['disable-reuse'] != null) {
|
||||
parsedProxy.disable_reuse = !!proxy['disable-reuse'];
|
||||
}
|
||||
detourParser(proxy, parsedProxy);
|
||||
tlsParser(proxy, parsedProxy);
|
||||
ipVersionParser(proxy, parsedProxy);
|
||||
|
||||
Reference in new issue
Block a user