fix: 修复 sing-box wireguard reserved

This commit is contained in:
xream 2024-04-07 19:48:08 +08:00
parent f90d9c2fd1
commit 6217c2e5cd
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.278",
"version": "2.14.279",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {

View File

@ -622,7 +622,7 @@ const wireguardParser = (proxy = {}) => {
throw 'invalid port';
if (proxy['fast-open']) parsedProxy.udp_fragment = true;
if (typeof proxy.reserved === 'string') {
parsedProxy.reserved.push(proxy.reserved);
parsedProxy.reserved = proxy.reserved;
} else if (Array.isArray(proxy.reserved)) {
for (const r of proxy.reserved) parsedProxy.reserved.push(r);
} else {