From a317648fa368ce3e8a26bbc05058016affea836e Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 20 Jun 2013 07:28:51 +0100 Subject: [PATCH] Add some more TODOs to Pack and kill the println This closes #46 (for now :-) ) --- msg.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msg.go b/msg.go index 2f25c1d1..dcc7d267 100644 --- a/msg.go +++ b/msg.go @@ -1343,6 +1343,8 @@ func (dns *Msg) Unpack(msg []byte) (err error) { } if off != len(msg) { // TODO(miek) make this an error? + // use PackOpt to let people tell how detailed the error reporting + // should be? // println("dns: extra bytes in dns packet", off, "<", len(msg)) } return nil