Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Apr 8, 2021
1 parent 4b2b914 commit abc6e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dnsforward/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (s *Server) processRestrictLocal(ctx *dnsContext) (rc resultCode) {
// least don't need to be unaccessable externally.
if s.subnetDetector.IsLocallyServedNetwork(ip) {
if !ctx.isLocalClient {
log.Debug("dns: %q requests for internal ip", d.Addr.String())
log.Debug("dns: %q requests for internal ip", d.Addr)
d.Res = s.genNXDomain(req)

// Do not even put into query log.
Expand Down

0 comments on commit abc6e1c

Please sign in to comment.