Skip to content

Commit

Permalink
feat: add additional log obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Nov 17, 2023
1 parent 6b73f51 commit 0c98d39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resolver/rewriter_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ func (r *RewriterResolver) rewriteRequest(logger *logrus.Entry, request *dns.Msg
rewritten.Question[i].Name = dns.Fqdn(domainRewritten)

logger.WithFields(logrus.Fields{
"domain": util.Obfuscate(domainOriginal),
"rewrite": rewriteKey + ":" + r.cfg.Rewrite[rewriteKey],
}).Debugf("rewriting %q to %q", domainOriginal, domainRewritten)
"rewrite": util.Obfuscate(rewriteKey) + ":" + util.Obfuscate(r.cfg.Rewrite[rewriteKey]),
}).Debugf("rewriting %q to %q", util.Obfuscate(domainOriginal), util.Obfuscate(domainRewritten))
}
}

Expand Down

0 comments on commit 0c98d39

Please sign in to comment.