Use the new names for the header bits
This commit is contained in:
parent
1a1c16398c
commit
167492c6fa
|
@ -14,7 +14,7 @@ func TestResolverEdns(t *testing.T) {
|
|||
res.Attempts = 1
|
||||
|
||||
m := new(dns.Msg)
|
||||
m.MsgHdr.Recursion_desired = true //only set this bit
|
||||
m.MsgHdr.RecursionDesired = true //only set this bit
|
||||
m.Question = make([]dns.Question, 1)
|
||||
m.Extra = make([]dns.RR, 1)
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ func TestResolver(t *testing.T) {
|
|||
res.Servers = []string{"127.0.0.1"}
|
||||
|
||||
m := new(dns.Msg)
|
||||
m.MsgHdr.Recursion_desired = true //only set this bit
|
||||
m.MsgHdr.RecursionDesired = true //only set this bit
|
||||
m.Question = make([]dns.Question, 1)
|
||||
|
||||
// ask something
|
||||
|
|
Loading…
Reference in New Issue