Commit 66fcaaea authored by ZouYu's avatar ZouYu Committed by GitHub

Fix some typos (#4412)

Signed-off-by: default avatarzouyu <zouy.fnst@cn.fujitsu.com>
parent a10eb88f
......@@ -4,7 +4,7 @@ import "github.com/miekg/dns"
// isDNSSEC returns true if r is a DNSSEC record. NSEC,NSEC3,DS and RRSIG/SIG
// are DNSSEC records. DNSKEYs is not in this list on the assumption that the
// client explictly asked for it.
// client explicitly asked for it.
func isDNSSEC(r dns.RR) bool {
switch r.Header().Rrtype {
case dns.TypeNSEC:
......
......@@ -42,10 +42,10 @@ func (w *writer) Dnstap(e tap.Dnstap) {
got := e.Message
if string(ex.QueryAddress) != string(got.QueryAddress) {
w.t.Errorf("Expected source adress %s, got %s", ex.QueryAddress, got.QueryAddress)
w.t.Errorf("Expected source address %s, got %s", ex.QueryAddress, got.QueryAddress)
}
if string(ex.ResponseAddress) != string(got.ResponseAddress) {
w.t.Errorf("Expected response adress %s, got %s", ex.ResponseAddress, got.ResponseAddress)
w.t.Errorf("Expected response address %s, got %s", ex.ResponseAddress, got.ResponseAddress)
}
if *ex.QueryPort != *got.QueryPort {
w.t.Errorf("Expected port %d, got %d", *ex.QueryPort, *got.QueryPort)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment