aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/request.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-09-06 23:27:30 +0700
committerShulhan <m.shulhan@gmail.com>2020-09-06 23:27:30 +0700
commit4535334330cf040bada71b2b36bdb7c770bbcbf1 (patch)
treea490f03284ea92aac177e98417bb2f3b23aa6a25 /lib/dns/request.go
parenta76f3bbe72b0926d5479bd02a08cae175c1f469e (diff)
downloadpakakeh.go-4535334330cf040bada71b2b36bdb7c770bbcbf1.tar.xz
dns: unexport the Messsage's Packet field
This field is used for storing the actual DNS packet after Message.Pack has been called.
Diffstat (limited to 'lib/dns/request.go')
-rw-r--r--lib/dns/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/request.go b/lib/dns/request.go
index 63d979b9..cb2021e7 100644
--- a/lib/dns/request.go
+++ b/lib/dns/request.go
@@ -50,7 +50,7 @@ func (req *request) error(rcode ResponseCode) {
req.message.SetQuery(false)
req.message.SetResponseCode(rcode)
- _, err := req.writer.Write(req.message.Packet)
+ _, err := req.writer.Write(req.message.packet)
if err != nil {
log.Println("dns: request.error:", err.Error())
}