aboutsummaryrefslogtreecommitdiff
path: root/plugin/rewrite/reverter.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/rewrite/reverter.go')
-rw-r--r--plugin/rewrite/reverter.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugin/rewrite/reverter.go b/plugin/rewrite/reverter.go
index 44b3caa30..63e38708f 100644
--- a/plugin/rewrite/reverter.go
+++ b/plugin/rewrite/reverter.go
@@ -17,7 +17,7 @@ type ResponseRule struct {
// ResponseReverter reverses the operations done on the question section of a packet.
// This is need because the client will otherwise disregards the response, i.e.
-// dig will complain with ';; Question section mismatch: got miek.nl/HINFO/IN'
+// dig will complain with ';; Question section mismatch: got example.org/HINFO/IN'
type ResponseReverter struct {
dns.ResponseWriter
originalQuestion dns.Question
@@ -64,10 +64,3 @@ func (r *ResponseReverter) Write(buf []byte) (int, error) {
n, err := r.ResponseWriter.Write(buf)
return n, err
}
-
-// Hijack implements dns.Hijacker. It simply wraps the underlying
-// ResponseWriter's Hijack method if there is one, or returns an error.
-func (r *ResponseReverter) Hijack() {
- r.ResponseWriter.Hijack()
- return
-}