made minimalLB+CCM
This commit is contained in:
@@ -94,6 +94,15 @@ func (prox *Proxy) CreateOrUpdateForwarder(ctx context.Context, proto string, lp
|
||||
|
||||
func (prox *Proxy) DeleteForwarder(ctx context.Context, proto string, lport uint32) error {
|
||||
var err error
|
||||
|
||||
if lport == 0 {
|
||||
return errors.New("Zero forwarder lport")
|
||||
}
|
||||
if proto == "" {
|
||||
return errors.New("Empty forwarder type")
|
||||
}
|
||||
proto = strings.ToLower(proto)
|
||||
|
||||
var forw *Forwarder
|
||||
prox.mtx.Lock()
|
||||
defer prox.mtx.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user