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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user