mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-05 18:57:43 +00:00
fix: 修复 mux
This commit is contained in:
7 files changed
+11
-28
No files matched your search
@@ -160,10 +160,7 @@ export default function Clash_Producer() {
|
||||
proxy[`${proxy.network}-opts`].path = '/';
|
||||
}
|
||||
}
|
||||
let mux = proxy['plugin-opts']?.mux;
|
||||
if (mux != null && typeof mux !== 'boolean') {
|
||||
proxy['plugin-opts'].mux = mux > 0 ? true : false;
|
||||
}
|
||||
|
||||
if (proxy['plugin-opts']?.tls) {
|
||||
if (isPresent(proxy, 'skip-cert-verify')) {
|
||||
proxy['plugin-opts']['skip-cert-verify'] =
|
||||
|
||||
@@ -239,10 +239,6 @@ export default function ClashMeta_Producer() {
|
||||
}
|
||||
}
|
||||
|
||||
let mux = proxy['plugin-opts']?.mux;
|
||||
if (mux != null && typeof mux !== 'boolean') {
|
||||
proxy['plugin-opts'].mux = mux > 0 ? true : false;
|
||||
}
|
||||
if (proxy['plugin-opts']?.tls) {
|
||||
if (isPresent(proxy, 'skip-cert-verify')) {
|
||||
proxy['plugin-opts']['skip-cert-verify'] =
|
||||
|
||||
@@ -214,10 +214,7 @@ export default function Shadowrocket_Producer() {
|
||||
proxy[`${proxy.network}-opts`].path = '/';
|
||||
}
|
||||
}
|
||||
let mux = proxy['plugin-opts']?.mux;
|
||||
if (mux != null && typeof mux !== 'boolean') {
|
||||
proxy['plugin-opts'].mux = mux > 0 ? true : false;
|
||||
}
|
||||
|
||||
if (proxy['plugin-opts']?.tls) {
|
||||
if (isPresent(proxy, 'skip-cert-verify')) {
|
||||
proxy['plugin-opts']['skip-cert-verify'] =
|
||||
|
||||
@@ -265,11 +265,7 @@ const normalizePemLines = (value, label) => {
|
||||
if (lines.some((line) => /^-----BEGIN [A-Za-z0-9 -]+-----$/.test(line))) {
|
||||
return lines;
|
||||
}
|
||||
return [
|
||||
`-----BEGIN ${label}-----`,
|
||||
...lines,
|
||||
`-----END ${label}-----`,
|
||||
];
|
||||
return [`-----BEGIN ${label}-----`, ...lines, `-----END ${label}-----`];
|
||||
};
|
||||
|
||||
const tlsParser = (proxy, parsedProxy) => {
|
||||
|
||||
@@ -281,10 +281,7 @@ export default function Stash_Producer() {
|
||||
proxy[`${proxy.network}-opts`].path = '/';
|
||||
}
|
||||
}
|
||||
let mux = proxy['plugin-opts']?.mux;
|
||||
if (mux != null && typeof mux !== 'boolean') {
|
||||
proxy['plugin-opts'].mux = mux > 0 ? true : false;
|
||||
}
|
||||
|
||||
if (proxy['plugin-opts']?.tls) {
|
||||
if (isPresent(proxy, 'skip-cert-verify')) {
|
||||
proxy['plugin-opts']['skip-cert-verify'] =
|
||||
|
||||
Reference in new issue
Block a user