Fix the testsuite
This commit is contained in:
parent
8b2c267b99
commit
b5de7e1745
6
edns.go
6
edns.go
|
@ -57,9 +57,9 @@ func (rr *RR_OPT) String() string {
|
|||
var r string
|
||||
if e == nil {
|
||||
for _, c := range h {
|
||||
r += " (" + string(c) + ")"
|
||||
r += "(" + string(c) + ")"
|
||||
}
|
||||
s += " " + r
|
||||
s += " " + r
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -116,6 +116,8 @@ func (rr *RR_OPT) Nsid() string {
|
|||
return "NSID: " + rr.Option[0].Data
|
||||
}
|
||||
|
||||
// Representation of NSID is in Hex
|
||||
|
||||
// Set the NSID
|
||||
func (rr *RR_OPT) SetNsidToHex(hexnsid string) {
|
||||
rr.Option[0].Code = OptionCodeNSID
|
||||
|
|
|
@ -28,7 +28,7 @@ func TestResolverEdns(t *testing.T) {
|
|||
edns.SetUDPSize(4096)
|
||||
edns.SetDo()
|
||||
edns.Option = make([]dns.Option, 1)
|
||||
edns.SetNsid("") // Empty to request it
|
||||
edns.SetNsidToHex("") // Empty to request it
|
||||
|
||||
// ask something
|
||||
m.Question[0] = dns.Question{"miek.nl", dns.TypeA, dns.ClassINET}
|
||||
|
|
Loading…
Reference in New Issue