mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-01 06:55:25 -05:00
refactor bytes functions
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.Port.Bytes())
|
||||
buffer.AppendUint16(request.Port.Value())
|
||||
buffer.Append(request.Data.Value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user