Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlzheng committed Dec 4, 2019
1 parent 5a8db5f commit f59d5cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/proxy/daemon/dnsserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ func query(w dns.ResponseWriter, req *dns.Msg) (rr []dns.RR) {
return
}

domain := getDomain(req.Question[0].Name)
qtype := req.Question[0].Qtype
name := req.Question[0].Name

domain := getDomain(name)

log.Info().Msgf("Received DNS query for %s: \n", domain)

msg := new(dns.Msg)
Expand Down

0 comments on commit f59d5cc

Please sign in to comment.