aboutsummaryrefslogtreecommitdiff
path: root/middleware/loadbalance/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/loadbalance/handler.go')
-rw-r--r--middleware/loadbalance/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/loadbalance/handler.go b/middleware/loadbalance/handler.go
index 119b4d5d2..151eb57d0 100644
--- a/middleware/loadbalance/handler.go
+++ b/middleware/loadbalance/handler.go
@@ -15,6 +15,6 @@ type RoundRobin struct {
// ServeDNS implements the middleware.Handler interface.
func (rr RoundRobin) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
- wrr := NewRoundRobinResponseWriter(w)
+ wrr := &RoundRobinResponseWriter{w}
return rr.Next.ServeDNS(ctx, wrr, r)
}