mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-31 06:25:32 -05:00
Migrate VMessIn with protocol
This commit is contained in:
@@ -32,6 +32,13 @@ type RequestHeader struct {
|
||||
Port v2net.Port
|
||||
}
|
||||
|
||||
func (this *RequestHeader) Destination() v2net.Destination {
|
||||
if this.Command == RequestCommandUDP {
|
||||
return v2net.UDPDestination(this.Address, this.Port)
|
||||
}
|
||||
return v2net.TCPDestination(this.Address, this.Port)
|
||||
}
|
||||
|
||||
type ResponseCommand interface{}
|
||||
|
||||
type ResponseHeader struct {
|
||||
|
||||
Reference in New Issue
Block a user