mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 20:45:28 -05:00
Add Port as a type
This commit is contained in:
@@ -34,7 +34,7 @@ func (request *Socks5UDPRequest) Write(buffer *alloc.Buffer) {
|
||||
case request.Address.IsDomain():
|
||||
buffer.AppendBytes(AddrTypeDomain, byte(len(request.Address.Domain()))).Append([]byte(request.Address.Domain()))
|
||||
}
|
||||
buffer.Append(request.Address.PortBytes())
|
||||
buffer.Append(request.Address.Port().Bytes())
|
||||
buffer.Append(request.Data.Value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user