made minimalLB+CCM

This commit is contained in:
2026-04-10 20:25:58 +02:00
parent 7bb0698f77
commit fc89c098b6
5 changed files with 108 additions and 25 deletions
+9
View File
@@ -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()