fix typo
This commit is contained in:
parent
8a49e9da90
commit
d0d9c92612
2
msg.go
2
msg.go
|
@ -248,7 +248,7 @@ func PackDomainName(s string, msg []byte, off int, compression map[string]int, c
|
||||||
off++
|
off++
|
||||||
}
|
}
|
||||||
// Dont try to compress '.'
|
// Dont try to compress '.'
|
||||||
if compression != nil && string(bs[begin:]) != ".'" {
|
if compression != nil && string(bs[begin:]) != "." {
|
||||||
if p, ok := compression[string(bs[begin:])]; !ok {
|
if p, ok := compression[string(bs[begin:])]; !ok {
|
||||||
// Only offsets smaller than this can be used.
|
// Only offsets smaller than this can be used.
|
||||||
if offset < maxCompressionOffset {
|
if offset < maxCompressionOffset {
|
||||||
|
|
Loading…
Reference in New Issue