From 3aad49170fc2c8ab974bff38e365fe400556584d Mon Sep 17 00:00:00 2001 From: sayaoailun Date: Wed, 11 Feb 2026 10:41:48 +0800 Subject: [PATCH] fix: Limit the range of zoneid to prevent overflow --- pkg/agent/utils/ct_zone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/utils/ct_zone.go b/pkg/agent/utils/ct_zone.go index 4f7471de0..68b635e19 100644 --- a/pkg/agent/utils/ct_zone.go +++ b/pkg/agent/utils/ct_zone.go @@ -51,7 +51,7 @@ func (zm *ZoneMan) AllocateZoneId(mac string) (uint16, error) { zm.zm[mac] = i return zm.base + i, nil } - i += 1 + i = (i + 1) % uint16(total) if i == j { break }