fix dns query

pull/320/head
dd 2016-12-12 00:12:58 +08:00
parent 39b4acc3d9
commit 20c330d03c
1 changed files with 1 additions and 1 deletions

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
}