1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 08:16:00 -04:00

Merge pull request #320 from sinfere/master

fix dns query
This commit is contained in:
Darien Raymond 2016-12-11 21:34:01 +01:00 committed by GitHub
commit 58bcfcee4e

View File

@ -157,7 +157,7 @@ func (v *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer {
}}
writtenBuffer, _ := msg.PackBuffer(buffer.Bytes())
buffer.Slice(0, len(writtenBuffer))
buffer.Append(writtenBuffer)
return buffer
}