1
0
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:
v2ray
2016-02-27 17:28:21 +01:00
parent 2144c47102
commit 547cc75651
6 changed files with 63 additions and 65 deletions

View File

@@ -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 {