mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-07-13 17:11:52 +08:00
fix: SS URI 端口取整数部分
This commit is contained in:
parent
1fc5b764fe
commit
5a645081d1
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.102",
|
"version": "2.14.103",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -33,7 +33,9 @@ function URI_SS() {
|
|||||||
const serverAndPort = serverAndPortArray[1];
|
const serverAndPort = serverAndPortArray[1];
|
||||||
const portIdx = serverAndPort.lastIndexOf(':');
|
const portIdx = serverAndPort.lastIndexOf(':');
|
||||||
proxy.server = serverAndPort.substring(0, portIdx);
|
proxy.server = serverAndPort.substring(0, portIdx);
|
||||||
proxy.port = serverAndPort.substring(portIdx + 1);
|
proxy.port = `${serverAndPort.substring(portIdx + 1)}`.match(
|
||||||
|
/\d+/,
|
||||||
|
)?.[0];
|
||||||
|
|
||||||
const userInfo = userInfoStr.split(':');
|
const userInfo = userInfoStr.split(':');
|
||||||
proxy.cipher = userInfo[0];
|
proxy.cipher = userInfo[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user