Skip to content

Commit cca6ebd

Browse files
committed
feat: 兼容非标 Shadowsocks URI 输入
1 parent e0f6b3e commit cca6ebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.19.35",
3+
"version": "2.19.34",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/parsers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function URI_SS() {
134134
};
135135
content = content.split('#')[0]; // strip proxy name
136136
// handle IPV4 and IPV6
137-
let serverAndPortArray = content.match(/@([^/]*)(\/|$)/);
137+
let serverAndPortArray = content.match(/@([^/?]*)(\/|\?|$)/);
138138

139139
let rawUserInfoStr = decodeURIComponent(content.split('@')[0]); // 其实应该分隔之后, 用户名和密码再 decodeURIComponent. 但是问题不大
140140
let userInfoStr;

0 commit comments

Comments
 (0)