From 2270a9efacad29ca62123617e49920cc7e7fd1af Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 30 Sep 2025 16:09:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Surge=20WireGuard?= =?UTF-8?q?=20preshared-key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/surge.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/package.json b/backend/package.json index 50f45296..301fdffd 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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": { diff --git a/backend/src/core/proxy-utils/producers/surge.js b/backend/src/core/proxy-utils/producers/surge.js index b0eec87e..35e31019 100644 --- a/backend/src/core/proxy-utils/producers/surge.js +++ b/backend/src/core/proxy-utils/producers/surge.js @@ -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,