From 4a19d5a0dff820d112a99adedd98393e01c55ab0 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 19 Apr 2025 16:44:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20URI=20=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= 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/uri.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/package.json b/backend/package.json index 57d07b1..c5423bb 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.27", + "version": "2.19.28", "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/uri.js b/backend/src/core/proxy-utils/producers/uri.js index a10c9d0..a93cfd3 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -478,7 +478,7 @@ export default function URI_Producer() { hysteriaParams.push(`obfsParam=${proxy[key]}`); } else if (['sni'].includes(key)) { hysteriaParams.push(`peer=${proxy[key]}`); - } else if (proxy[key]) { + } else if (proxy[key] && !/^_/i.test(key)) { hysteriaParams.push( `${i}=${encodeURIComponent(proxy[key])}`, ); @@ -541,7 +541,7 @@ export default function URI_Producer() { tuicParams.push( `congestion_control=${proxy[key]}`, ); - } else if (proxy[key]) { + } else if (proxy[key] && !/^_/i.test(key)) { tuicParams.push( `${i.replace( /-/g, @@ -593,7 +593,7 @@ export default function URI_Producer() { if (proxy[key]) { anytlsParams.push(`udp=1`); } - } else if (proxy[key]) { + } else if (proxy[key] && !/^_/i.test(key)) { anytlsParams.push( `${i.replace(/-/g, '_')}=${encodeURIComponent( proxy[key], @@ -630,7 +630,7 @@ export default function URI_Producer() { if (proxy[key]) { wireguardParams.push(`${key}=1`); } - } else if (proxy[key]) { + } else if (proxy[key] && !/^_/i.test(key)) { wireguardParams.push( `${key}=${encodeURIComponent(proxy[key])}`, );