mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-11 11:37:03 +02:00
Merge copies the receiver by value, but the slice headers share the backing array with the original. When append has spare capacity, it writes through to the original's memory, and uniqueNodeIDs then sorts that shared data in place. Replace append with slices.Concat which always allocates a fresh backing array, preventing mutation of the receiver's slices.