Skip to content

Commit 7450a8c

Browse files
committed
feat: 增强 SOCKS5 URI 兼容性
1 parent 1a479a8 commit 7450a8c

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.20.23",
3+
"version": "2.20.24",
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
@@ -43,7 +43,7 @@ function URI_PROXY() {
4343
// eslint-disable-next-line no-unused-vars
4444
let [__, type, tls, username, password, server, port, query, name] =
4545
line.match(
46-
/^(socks5|http|http)(\+tls|s)?:\/\/(?:(.*?):(.*?)@)?(.*?)(?::(\d+?))?(\?.*?)?(?:#(.*?))?$/,
46+
/^(socks5|http|http)(\+tls|s)?:\/\/(?:(.*?):(.*?)@)?(.*?)(?::(\d+?))?\/?(\?.*?)?(?:#(.*?))?$/,
4747
);
4848
if (port) {
4949
port = parseInt(port, 10);

0 commit comments

Comments
 (0)