Fix editorial suggestions

This commit is contained in:
Patrick Sodré 2017-08-10 00:43:24 -04:00 committed by Frank Schroeder
parent 4b2d1546fa
commit a16e0f7419
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
2 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ INVALID:
// nodeLookup is used to handle a node query // nodeLookup is used to handle a node query
func (d *DNSServer) nodeLookup(network, datacenter, node string, req, resp *dns.Msg) { 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 qType := req.Question[0].Qtype
if qType != dns.TypeANY && qType != dns.TypeA && qType != dns.TypeAAAA && qType != dns.TypeTXT { if qType != dns.TypeANY && qType != dns.TypeA && qType != dns.TypeAAAA && qType != dns.TypeTXT {
return return

View File

@ -343,7 +343,7 @@ func TestDNS_NodeLookup_CNAME(t *testing.T) {
t.Fatalf("err: %v", err) 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 { if len(in.Answer) != 4 {
t.Fatalf("Bad: %#v", in) t.Fatalf("Bad: %#v", in)
} }