Fix editorial suggestions

pull/3513/head
Patrick Sodré 7 years ago committed by Frank Schroeder
parent afb0c92334
commit 655c89ee10
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -485,7 +485,7 @@ INVALID:
// nodeLookup is used to handle a node query
func (d *DNSServer) nodeLookup(network, datacenter, node string, req, resp *dns.Msg) {
// Only handle ANY, A, AAAA and TXT type requests
// Only handle ANY, A, AAAA, and TXT type requests
qType := req.Question[0].Qtype
if qType != dns.TypeANY && qType != dns.TypeA && qType != dns.TypeAAAA && qType != dns.TypeTXT {
return

@ -343,7 +343,7 @@ func TestDNS_NodeLookup_CNAME(t *testing.T) {
t.Fatalf("err: %v", err)
}
// Should have the service record, CNAME record + A + TXT record
// Should have the service, CNAME, A, and TXT records
if len(in.Answer) != 4 {
t.Fatalf("Bad: %#v", in)
}

Loading…
Cancel
Save