Fix:VLESS URL decoding with network type error, #3388 (#3390)

This commit is contained in:
Christine.
2025-04-21 00:50:32 +08:00
committed by GitHub
Unverified
parent d05952e945
commit 0646fa96a6

View File

@@ -578,7 +578,9 @@ function URI_VLESS(line: string): IProxyVlessConfig {
proxy.network = "ws";
httpupgrade = true;
} else {
proxy.network = "tcp";
proxy.network = ["tcp", "ws", "http", "grpc", "h2"].includes(params.type)
? (params.type as NetworkType)
: "tcp";
}
if (!proxy.network && isShadowrocket && params.obfs) {
switch (params.type) {