diff options
Diffstat (limited to 'plugin/rewrite/condition.go')
-rw-r--r-- | plugin/rewrite/condition.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/rewrite/condition.go b/plugin/rewrite/condition.go index f8d2a9f08..97ca99753 100644 --- a/plugin/rewrite/condition.go +++ b/plugin/rewrite/condition.go @@ -1,6 +1,7 @@ package rewrite import ( + "context" "fmt" "regexp" "strings" @@ -22,7 +23,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(context.TODO(), r, nil, "") } // condition is a rewrite condition. type condition func(string, string) bool |