mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-11 03:27:20 +02:00
routesChanged aliases newHI.RoutableIPs into a local variable then sorts it in place, which mutates the caller's Hostinfo data. The Hostinfo is subsequently stored on the node, so the mutation propagates but the input contract is violated. Clone the slice before sorting to avoid mutating the input.