mirror of
https://github.com/coredns/coredns.git
synced 2025-11-18 18:02:16 -05:00
@@ -42,7 +42,7 @@ func TestCompressScrub(t *testing.T) {
|
||||
}
|
||||
buf = buf[:n]
|
||||
// If there is compression in the returned packet we should look for compression pointers, if found
|
||||
// the pointers should return to the domain name in the query (the first domain name that's avaiable for
|
||||
// the pointers should return to the domain name in the query (the first domain name that's available for
|
||||
// compression. This means we're looking for a combo where the pointers is detected and the offset is 12
|
||||
// the position of the first name after the header. The erratic plugin adds 30 RRs that should all be compressed.
|
||||
found := 0
|
||||
|
||||
@@ -161,7 +161,7 @@ google.com:0 {
|
||||
}
|
||||
defer i.Stop()
|
||||
|
||||
// send an inital query to setup properly the cache size
|
||||
// send an initial query to setup properly the cache size
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion("google.com.", dns.TypeA)
|
||||
if _, err = dns.Exchange(m, udp); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user