fix: 修复 Surge WireGuard preshared-key

This commit is contained in:
xream committed 2025-09-30 16:09:33 +08:00
1 parent 276d5cea54
commit 2270a9efac
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.20.26",
"version": "2.20.27",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -920,9 +920,7 @@ private-key = ${proxy['private-key']}`);
? proxy.reserved.join('/')
: proxy.reserved;
let presharedKey = proxy['preshared-key'] ?? proxy['pre-shared-key'];
if (presharedKey) {
presharedKey = `,preshared-key="${presharedKey}"`;
}
const peer = {
'public-key': proxy['public-key'],
'allowed-ips': allowedIps ? `"${allowedIps}"` : undefined,