diff options
Diffstat (limited to 'plugin/loadbalance/loadbalance.go')
-rw-r--r-- | plugin/loadbalance/loadbalance.go | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugin/loadbalance/loadbalance.go b/plugin/loadbalance/loadbalance.go index 031f841f4..39e70368d 100644 --- a/plugin/loadbalance/loadbalance.go +++ b/plugin/loadbalance/loadbalance.go @@ -1,14 +1,12 @@ -// Package loadbalance shuffles A and AAAA records. +// Package loadbalance shuffles A, AAAA and MX records. package loadbalance import ( "github.com/miekg/dns" ) -// RoundRobinResponseWriter is a response writer that shuffles A and AAAA records. -type RoundRobinResponseWriter struct { - dns.ResponseWriter -} +// RoundRobinResponseWriter is a response writer that shuffles A, AAAA and MX records. +type RoundRobinResponseWriter struct{ dns.ResponseWriter } // WriteMsg implements the dns.ResponseWriter interface. func (r *RoundRobinResponseWriter) WriteMsg(res *dns.Msg) error { @@ -77,9 +75,3 @@ func (r *RoundRobinResponseWriter) Write(buf []byte) (int, error) { n, err := r.ResponseWriter.Write(buf) return n, err } - -// Hijack implements the dns.ResponseWriter interface. -func (r *RoundRobinResponseWriter) Hijack() { - r.ResponseWriter.Hijack() - return -} |