mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-23 19:07:39 -05:00
fix: free ips from usedIps ipset on DeleteNode
This commit is contained in:
committed by
Kristoffer Dalby
parent
6d24afba1c
commit
299cef4e99
@@ -429,6 +429,8 @@ func (s *State) DeleteNode(node types.NodeView) (change.ChangeSet, error) {
|
||||
return change.EmptySet, err
|
||||
}
|
||||
|
||||
s.ipAlloc.FreeIPs(node.IPs())
|
||||
|
||||
c := change.NodeRemoved(node.ID())
|
||||
|
||||
// Check if policy manager needs updating after node deletion
|
||||
|
||||
Reference in New Issue
Block a user