fix: 修复 sing-box wireguard reserved

This commit is contained in:
xream
2024-04-07 19:48:08 +08:00
parent f90d9c2fd1
commit 6217c2e5cd
2 changed files with 2 additions and 2 deletions

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 {