Skip to content

Commit 6217c2e

Browse files
committed
fix: 修复 sing-box wireguard reserved
1 parent f90d9c2 commit 6217c2e

2 files changed

Lines changed: 2 additions & 2 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.14.278",
3+
"version": "2.14.279",
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/sing-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ const wireguardParser = (proxy = {}) => {
622622
throw 'invalid port';
623623
if (proxy['fast-open']) parsedProxy.udp_fragment = true;
624624
if (typeof proxy.reserved === 'string') {
625-
parsedProxy.reserved.push(proxy.reserved);
625+
parsedProxy.reserved = proxy.reserved;
626626
} else if (Array.isArray(proxy.reserved)) {
627627
for (const r of proxy.reserved) parsedProxy.reserved.push(r);
628628
} else {

0 commit comments

Comments
 (0)