From ae07490f67fd2d3d4b673dae00cba93925481dc1 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Fri, 10 Nov 2023 17:01:17 +0800 Subject: [PATCH] add fast break --- loxinet/layer3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/loxinet/layer3.go b/loxinet/layer3.go index ad94d5ba..14f26053 100644 --- a/loxinet/layer3.go +++ b/loxinet/layer3.go @@ -179,6 +179,7 @@ func (l3 *L3H) IfaDelete(Obj string, Cidr string) (int, error) { if pfxSz1 == pfxSz2 { ifa.Ifas = append(ifa.Ifas[:index], ifa.Ifas[index+1:]...) found = true + break } } }