From 20c330d03c3b80130bee08e3c6930a41fdf1df9f Mon Sep 17 00:00:00 2001
From: dd
Date: Mon, 12 Dec 2016 00:12:58 +0800
Subject: [PATCH] fix dns query
---
app/dns/nameserver.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/dns/nameserver.go b/app/dns/nameserver.go
index 94adff650..3ea1610a6 100644
--- a/app/dns/nameserver.go
+++ b/app/dns/nameserver.go
@@ -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
}