1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

format code

This commit is contained in:
Darien Raymond
2016-01-04 14:16:52 +00:00
parent 27b521d2aa
commit e6ad1d8518
4 changed files with 4 additions and 3 deletions

View File

@@ -231,7 +231,7 @@ func ReadRequest(reader io.Reader) (request *Socks5Request, err error) {
err = transport.CorruptedPacket
return
}
request.Domain = string(buffer.Value[:domainLength])
request.Domain = string(append([]byte(nil), buffer.Value[:domainLength]...))
case AddrTypeIPv6:
nBytes, err = reader.Read(request.IPv6[:])
if err != nil {