Merge declaration and assignment

This commit is contained in:
Frank Denis 2020-09-13 20:24:06 +02:00
parent 018d8412be
commit 26505ab560

View File

@ -75,8 +75,7 @@ func handleColdStartClient(clientPc *net.UDPConn, cancelChannel chan struct{}, i
if question.Qclass != dns.ClassINET {
return false
}
var respMsg *dns.Msg
respMsg = EmptyResponseFromMessage(msg)
respMsg := EmptyResponseFromMessage(msg)
ttl := uint32(1)
if question.Qtype == dns.TypeA {
for _, xip := range ips {