修复Trojan一处解析错误

This commit is contained in:
Peng-YM
2020-12-31 14:30:01 +08:00
parent 76cd097a23
commit b092d3fd6a
6 changed files with 28 additions and 6 deletions

View File

@@ -1192,7 +1192,7 @@ var ProxyUtils = (function () {
const parse = (line) => {
const supported = {};
line = line.split("trojan://")[1];
const [server, port] = line.split("@")[1].split("?")[0].split(".");
const [server, port] = line.split("@")[1].split("?")[0].split(":");
const name = decodeURIComponent(line.split("#")[1].trim());
return {