From d73e1cae8587363956fb3ce2b6415c0e188cfe97 Mon Sep 17 00:00:00 2001 From: Ali Abbas Date: Sat, 6 Dec 2014 13:13:35 +0100 Subject: [PATCH] since dns.TXT is an external dependency, it is safer to add keys to the fields to avoid some potential ordering issues if changes in this field occur with upstream --- command/agent/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/dns.go b/command/agent/dns.go index ec56fbfc5b..41f8df57ba 100644 --- a/command/agent/dns.go +++ b/command/agent/dns.go @@ -274,7 +274,7 @@ func (d *DNSServer) handleTest(resp dns.ResponseWriter, req *dns.Msg) { m.Authoritative = true m.RecursionAvailable = true header := dns.RR_Header{Name: q.Name, Rrtype: dns.TypeTXT, Class: dns.ClassINET, Ttl: 0} - txt := &dns.TXT{header, []string{"ok"}} + txt := &dns.TXT{Hdr: header, Txt: []string{"ok"}} m.Answer = append(m.Answer, txt) d.addSOA(consulDomain, m) if err := resp.WriteMsg(m); err != nil {