From 78991ddca8cf914bbc37b7580fe86001945a6a61 Mon Sep 17 00:00:00 2001
From: Peng-YM <1048217874pengym@gmail.com>
Date: Mon, 31 Aug 2020 19:10:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSS=20URI=E7=9A=84=E4=B8=80?=
=?UTF-8?q?=E5=A4=84=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
backend/.idea/workspace.xml | 130 ++++++++++++++++++------------------
backend/sub-store.js | 3 +-
2 files changed, 66 insertions(+), 67 deletions(-)
diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml
index afdcc3e..cf3e5bd 100644
--- a/backend/.idea/workspace.xml
+++ b/backend/.idea/workspace.xml
@@ -84,7 +84,7 @@
-
+
@@ -104,180 +104,180 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/backend/sub-store.js b/backend/sub-store.js
index beb3a1a..2a8dbca 100644
--- a/backend/sub-store.js
+++ b/backend/sub-store.js
@@ -621,7 +621,6 @@ function URI_SS() {
supported
}
content = content.split("#")[0]; // strip proxy name
-
// handle IPV4 and IPV6
const serverAndPort = content.match(/@([^\/]*)(\/|$)/)[1];
const portIdx = serverAndPort.lastIndexOf(":");
@@ -635,7 +634,7 @@ function URI_SS() {
// handle obfs
const idx = content.indexOf("?plugin=");
if (idx !== -1) {
- const pluginInfo = ("plugin=" + decodeURIComponent(content.split("?plugin=")[1])).split(";");
+ const pluginInfo = ("plugin=" + decodeURIComponent(content.split("?plugin=")[1].split("&")[0])).split(";");
const params = {};
for (const item of pluginInfo) {
const [key, val] = item.split("=");