log/forward plugins: Extend dns query logging (#2240)

Automatically submitted.
This commit is contained in:
Dzmitry Razhanski
2018-10-29 21:50:31 +03:00
committed by corbot[bot]
parent e6d02a3fd2
commit 8045aa279b
7 changed files with 55 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ const (
NotMatch = "not_match"
)
func newReplacer(r *dns.Msg) replacer.Replacer { return replacer.New(r, nil, "") }
func newReplacer(r *dns.Msg) replacer.Replacer { return replacer.New(nil, r, nil, "") }
// condition is a rewrite condition.
type condition func(string, string) bool