mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-07-23 02:24:25 +08:00
fix: SS 解析增加默认节点名
This commit is contained in:
parent
55cc7dcd16
commit
7f691c8511
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.28",
|
"version": "2.19.29",
|
||||||
"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": {
|
||||||
|
@ -128,8 +128,8 @@ function URI_SS() {
|
|||||||
// parse url
|
// parse url
|
||||||
let content = line.split('ss://')[1];
|
let content = line.split('ss://')[1];
|
||||||
|
|
||||||
|
let name = line.split('#')[1];
|
||||||
const proxy = {
|
const proxy = {
|
||||||
name: decodeURIComponent(line.split('#')[1]),
|
|
||||||
type: 'ss',
|
type: 'ss',
|
||||||
};
|
};
|
||||||
content = content.split('#')[0]; // strip proxy name
|
content = content.split('#')[0]; // strip proxy name
|
||||||
@ -260,6 +260,10 @@ function URI_SS() {
|
|||||||
if (/(&|\?)tfo=(1|true)/i.test(query)) {
|
if (/(&|\?)tfo=(1|true)/i.test(query)) {
|
||||||
proxy.tfo = true;
|
proxy.tfo = true;
|
||||||
}
|
}
|
||||||
|
if (name != null) {
|
||||||
|
name = decodeURIComponent(name);
|
||||||
|
}
|
||||||
|
proxy.name = name ?? `SS ${proxy.server}:${proxy.port}`;
|
||||||
return proxy;
|
return proxy;
|
||||||
};
|
};
|
||||||
return { name, test, parse };
|
return { name, test, parse };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user