Skip to content

Commit 2ffa9fc

Browse files
committed
fix: 修复 mux
1 parent c241894 commit 2ffa9fc

6 files changed

Lines changed: 5 additions & 22 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.21.76",
3+
"version": "2.21.77",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/clash.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ export default function Clash_Producer() {
160160
proxy[`${proxy.network}-opts`].path = '/';
161161
}
162162
}
163-
let mux = proxy['plugin-opts']?.mux;
164-
if (mux != null && typeof mux !== 'boolean') {
165-
proxy['plugin-opts'].mux = mux > 0 ? true : false;
166-
}
163+
167164
if (proxy['plugin-opts']?.tls) {
168165
if (isPresent(proxy, 'skip-cert-verify')) {
169166
proxy['plugin-opts']['skip-cert-verify'] =

backend/src/core/proxy-utils/producers/clashmeta.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ export default function ClashMeta_Producer() {
239239
}
240240
}
241241

242-
let mux = proxy['plugin-opts']?.mux;
243-
if (mux != null && typeof mux !== 'boolean') {
244-
proxy['plugin-opts'].mux = mux > 0 ? true : false;
245-
}
246242
if (proxy['plugin-opts']?.tls) {
247243
if (isPresent(proxy, 'skip-cert-verify')) {
248244
proxy['plugin-opts']['skip-cert-verify'] =

backend/src/core/proxy-utils/producers/shadowrocket.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,7 @@ export default function Shadowrocket_Producer() {
214214
proxy[`${proxy.network}-opts`].path = '/';
215215
}
216216
}
217-
let mux = proxy['plugin-opts']?.mux;
218-
if (mux != null && typeof mux !== 'boolean') {
219-
proxy['plugin-opts'].mux = mux > 0 ? true : false;
220-
}
217+
221218
if (proxy['plugin-opts']?.tls) {
222219
if (isPresent(proxy, 'skip-cert-verify')) {
223220
proxy['plugin-opts']['skip-cert-verify'] =

backend/src/core/proxy-utils/producers/sing-box.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,7 @@ const normalizePemLines = (value, label) => {
265265
if (lines.some((line) => /^-----BEGIN [A-Za-z0-9 -]+-----$/.test(line))) {
266266
return lines;
267267
}
268-
return [
269-
`-----BEGIN ${label}-----`,
270-
...lines,
271-
`-----END ${label}-----`,
272-
];
268+
return [`-----BEGIN ${label}-----`, ...lines, `-----END ${label}-----`];
273269
};
274270

275271
const tlsParser = (proxy, parsedProxy) => {

backend/src/core/proxy-utils/producers/stash.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,7 @@ export default function Stash_Producer() {
281281
proxy[`${proxy.network}-opts`].path = '/';
282282
}
283283
}
284-
let mux = proxy['plugin-opts']?.mux;
285-
if (mux != null && typeof mux !== 'boolean') {
286-
proxy['plugin-opts'].mux = mux > 0 ? true : false;
287-
}
284+
288285
if (proxy['plugin-opts']?.tls) {
289286
if (isPresent(proxy, 'skip-cert-verify')) {
290287
proxy['plugin-opts']['skip-cert-verify'] =

0 commit comments

Comments
 (0)