From d35115b7b33ea77bb8b56b1a59d17f4857d9665e Mon Sep 17 00:00:00 2001 From: wweir Date: Wed, 20 Mar 2019 08:48:46 +0800 Subject: [PATCH] Fix for vet --- dns/dns.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dns/dns.go b/dns/dns.go index a17f24e..bc56d6e 100644 --- a/dns/dns.go +++ b/dns/dns.go @@ -59,7 +59,11 @@ func dynamicSetUpstreamDNS(listenIP string, dnsServer *string, dhcpCh <-chan str Id: dns.Id(), RecursionDesired: false, }, - Question: []dns.Question{{addr, dns.TypeA, dns.ClassINET}}, + Question: []dns.Question{{ + Name: addr, + Qtype: dns.TypeA, + Qclass: dns.ClassINET, + }}, } for {