Fix editorial suggestions
This commit is contained in:
parent
4b2d1546fa
commit
a16e0f7419
|
@ -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…
Reference in New Issue