diff options
author | 2017-08-24 09:34:07 -0700 | |
---|---|---|
committer | 2017-08-24 17:34:07 +0100 | |
commit | 3f05f7e6c0dcb9fbbcdddfdfa7293f9cd74360e5 (patch) | |
tree | 5e9c30f9adaefe0300afe1d701d3e0d726f9892e /middleware/rewrite/class.go | |
parent | 5e9991556e9edb403a12a83372aba46ace42b869 (diff) | |
download | coredns-3f05f7e6c0dcb9fbbcdddfdfa7293f9cd74360e5.tar.gz coredns-3f05f7e6c0dcb9fbbcdddfdfa7293f9cd74360e5.tar.zst coredns-3f05f7e6c0dcb9fbbcdddfdfa7293f9cd74360e5.zip |
Add set EDNS0 with variable substitution (#937)
* Add set EDNS0 with variable substitution
* Change variable from $ to {}. Un-export constants
* Update README
* Change getRuleData() to ruleData(); Change to use string match from regexp
Diffstat (limited to 'middleware/rewrite/class.go')
-rw-r--r-- | middleware/rewrite/class.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/rewrite/class.go b/middleware/rewrite/class.go index a2bd00d0f..8cc7d26b7 100644 --- a/middleware/rewrite/class.go +++ b/middleware/rewrite/class.go @@ -24,7 +24,7 @@ func newClassRule(fromS, toS string) (Rule, error) { } // Rewrite rewrites the the current request. -func (rule *classRule) Rewrite(r *dns.Msg) Result { +func (rule *classRule) Rewrite(w dns.ResponseWriter, r *dns.Msg) Result { if rule.fromClass > 0 && rule.toClass > 0 { if r.Question[0].Qclass == rule.fromClass { r.Question[0].Qclass = rule.toClass |