tweaks
This commit is contained in:
parent
8d56ace2ed
commit
7444d67bfd
3
msg.go
3
msg.go
|
@ -1329,6 +1329,9 @@ func (dns *Msg) String() string {
|
||||||
func (dns *Msg) Len() int {
|
func (dns *Msg) Len() int {
|
||||||
// Message header is always 12 bytes
|
// Message header is always 12 bytes
|
||||||
l := 12
|
l := 12
|
||||||
|
// All ownernames can be compressed at any time
|
||||||
|
|
||||||
|
// TODO(mg): if Compress=true do with compression
|
||||||
for i := 0; i < len(dns.Question); i++ {
|
for i := 0; i < len(dns.Question); i++ {
|
||||||
l += dns.Question[i].Len()
|
l += dns.Question[i].Len()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue