fix: 修复 mux

This commit is contained in:
xream committed 2026-04-05 13:35:30 +08:00
1 parent c24189430b
commit 404df83d52
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'] =