Merge declaration and assignment
This commit is contained in:
parent
018d8412be
commit
26505ab560
|
@ -75,8 +75,7 @@ func handleColdStartClient(clientPc *net.UDPConn, cancelChannel chan struct{}, i
|
||||||
if question.Qclass != dns.ClassINET {
|
if question.Qclass != dns.ClassINET {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var respMsg *dns.Msg
|
respMsg := EmptyResponseFromMessage(msg)
|
||||||
respMsg = EmptyResponseFromMessage(msg)
|
|
||||||
ttl := uint32(1)
|
ttl := uint32(1)
|
||||||
if question.Qtype == dns.TypeA {
|
if question.Qtype == dns.TypeA {
|
||||||
for _, xip := range ips {
|
for _, xip := range ips {
|
||||||
|
|
Loading…
Reference in New Issue