mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 02:45:58 +08:00
Fixed Trojan server name bug
This commit is contained in:
parent
1cecbe541e
commit
8504738ee1
@ -1012,7 +1012,7 @@ function URI_Trojan() {
|
|||||||
}
|
}
|
||||||
line = line.split("trojan://")[1];
|
line = line.split("trojan://")[1];
|
||||||
const server = line.split("@")[1].split(":443")[0];
|
const server = line.split("@")[1].split(":443")[0];
|
||||||
const name = line.split("#")[1].trim();
|
const name = decodeURIComponent(line.split("#")[1].trim());
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: name || `[Trojan] ${server}`, // trojan uri may have no server tag!
|
name: name || `[Trojan] ${server}`, // trojan uri may have no server tag!
|
||||||
|
2
backend/sub-store.min.js
vendored
2
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user