Use the new names for the header bits

This commit is contained in:
Miek Gieben 2010-12-30 16:48:35 +01:00
parent 1a1c16398c
commit 167492c6fa
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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