feat: 支持解析 QX VLESS 输入; VLESS 无 network 时, 默认为 tcp

This commit is contained in:
xream
2024-01-17 19:30:23 +08:00
parent 7fd585b5d4
commit 63887e3dad
6 changed files with 33 additions and 4 deletions

View File

@@ -229,6 +229,11 @@ function lastParse(proxy) {
delete proxy.network;
}
}
if (['vless'].includes(proxy.type)) {
if (!proxy.network) {
proxy.network = 'tcp';
}
}
if (['trojan', 'tuic', 'hysteria', 'hysteria2'].includes(proxy.type)) {
proxy.tls = true;
}