Files
headscale/hscontrol
Igor Serganov 704f1cafd3 db: release the IPv4 address when IPv6 allocation fails in Next
IPAllocator.Next took the allocator mutex once per address family.
When the IPv6 allocation failed, the IPv4 address had already been
added to usedIPs and prev4 had moved past it, so the address stayed
reserved until headscale restarted even though no node held it.

Allocate both families under a single critical section, and on an
IPv6 failure remove the IPv4 address from usedIPs and restore prev4.
2026-10-30 17:05:25 +01:00
..
2026-06-17 16:12:19 +02:00
2026-06-17 16:12:19 +02:00