diff --git a/app/router/balancing_override.go b/app/router/balancing_override.go index 70b2906ca..e3a34b75d 100644 --- a/app/router/balancing_override.go +++ b/app/router/balancing_override.go @@ -2,25 +2,8 @@ package router import ( sync "sync" - - "github.com/xtls/xray-core/common/errors" ) -func (r *Router) OverrideBalancer(balancer string, target string) error { - var b *Balancer - for tag, bl := range *r.balancers.Load() { - if tag == balancer { - b = bl - break - } - } - if b == nil { - return errors.New("balancer '", balancer, "' not found") - } - b.override.Put(target) - return nil -} - type overrideSettings struct { target string }