fix dns query

pull/320/head
dd 8 years ago
parent 39b4acc3d9
commit 20c330d03c

@ -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
}

Loading…
Cancel
Save