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 9f9cfb766..9b4baf2ed 100644
--- a/middleware/loadbalance/handler.go
+++ b/middleware/loadbalance/handler.go
@@ -16,7 +16,7 @@ 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 := &RoundRobinResponseWriter{w}
- return rr.Next.ServeDNS(ctx, wrr, r)
+ return middleware.NextOrFailure(rr.Name(), rr.Next, ctx, wrr, r)
}
// Name implements the Handler interface.