From 1248e6b32ab12a4c080006a6c9f77b7251f21b31 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 30 Jan 2024 03:24:42 +0800 Subject: [PATCH] fix: v2ray-plugin --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/package.json b/backend/package.json index e887b13..7749351 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.193", + "version": "2.14.194", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index 60bda0b..45ca22e 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -45,7 +45,7 @@ function URI_SS() { const parsed = query.match(/(&|\?)v2ray-plugin=(.*?)(&|$)/); let v2rayPlugin = parsed[2]; if (v2rayPlugin) { - proxy.obfs = 'v2ray-plugin'; + proxy.plugin = 'v2ray-plugin'; proxy['plugin-opts'] = JSON.parse( Base64.decode(v2rayPlugin), ); @@ -89,7 +89,7 @@ function URI_SS() { }; break; case 'v2ray-plugin': - proxy.obfs = 'v2ray-plugin'; + proxy.plugin = 'v2ray-plugin'; proxy['plugin-opts'] = { mode: 'websocket', host: getIfNotBlank(params['obfs-host']),