aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/pkg/nonwriter/nonwriter.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/plugin/pkg/nonwriter/nonwriter.go b/plugin/pkg/nonwriter/nonwriter.go
index b157e4242..411e98a94 100644
--- a/plugin/pkg/nonwriter/nonwriter.go
+++ b/plugin/pkg/nonwriter/nonwriter.go
@@ -2,8 +2,6 @@
package nonwriter
import (
- "net"
-
"github.com/miekg/dns"
)
@@ -11,11 +9,6 @@ import (
type Writer struct {
dns.ResponseWriter
Msg *dns.Msg
-
- // Raddr is the remote's address. This can be optionally set.
- Raddr net.Addr
- // Laddr is our address. This can be optionally set.
- Laddr net.Addr
}
// New makes and returns a new NonWriter.
@@ -26,9 +19,3 @@ func (w *Writer) WriteMsg(res *dns.Msg) error {
w.Msg = res
return nil
}
-
-// RemoteAddr returns the remote address.
-func (w *Writer) RemoteAddr() net.Addr { return w.Raddr }
-
-// LocalAddr returns the local address.
-func (w *Writer) LocalAddr() net.Addr { return w.Laddr }