diff --git a/proxy/tcpproxy/userspace.go b/proxy/tcpproxy/userspace.go index 94575307a..8ae98ffbb 100644 --- a/proxy/tcpproxy/userspace.go +++ b/proxy/tcpproxy/userspace.go @@ -117,7 +117,7 @@ func (tp *TCPProxy) pick() *remote { bestPr = r.srv.Priority w = 0 weighted = nil - unweighted = []*remote{r} + unweighted = nil fallthrough case r.srv.Priority == bestPr: if r.srv.Weight > 0 {