fix: free ips from usedIps ipset on DeleteNode

This commit is contained in:
Andrey Bobelev authored and Kristoffer Dalby committed 2025-11-11 17:27:00 -06:00
1 parent 6d24afba1c
commit 299cef4e99
2 files changed
+11

No files matched your search

+9
View File
@@ -341,3 +341,12 @@ func (db *HSDatabase) BackfillNodeIPs(i *IPAllocator) ([]string, error) {
return ret, err
}
func (i *IPAllocator) FreeIPs(ips []netip.Addr) {
i.mu.Lock()
defer i.mu.Unlock()
for _, ip := range ips {
i.usedIPs.Remove(ip)
}
}