1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

fix transfer for mux

This commit is contained in:
Darien Raymond
2018-02-09 22:29:30 +01:00
parent 30a0aa6fb0
commit 42d83a703e
3 changed files with 10 additions and 7 deletions

View File

@@ -18,11 +18,14 @@ const (
)
func (c RequestCommand) TransferType() TransferType {
if c == RequestCommandTCP {
switch c {
case RequestCommandTCP, RequestCommandMux:
return TransferTypeStream
case RequestCommandUDP:
return TransferTypePacket
default:
return TransferTypeStream
}
return TransferTypePacket
}
const (