Compression is not allowed in dyn. updates

This commit is contained in:
Miek Gieben 2012-01-11 16:18:17 +01:00
parent 6d95911558
commit dfd7700790
1 changed files with 3 additions and 1 deletions

4
msg.go
View File

@ -234,10 +234,12 @@ func PackDomainName(s string, msg []byte, off int, compression map[string]int, c
// keep the pointer offset we get back and store
// the offset of the current name, because that's
// where we need to insert the pointer later
// If compress is true, we allowed to compress this dname
// If compress is true, we're allowed to compress this dname
if pointer == -1 && compress {
pointer = p // Where to point to
nameoffset = offset // Where to point from
println("Compressing:", string(bs[begin:]))
}
}
}