Files
tailscale/wgengine
Dean Chen 1daa21f553 wgengine/magicsock: close old UDP sockets when TS_DEBUG_ALWAYS_USE_DERP is set
bindSocket's TS_DEBUG_ALWAYS_USE_DERP branch swapped in an empty socket
group without closing the existing one. If the knob was turned on after
the Conn was bound, a Rebind left the old socket open with no reference
to it, so its port stayed bound even after Conn.Close. Close the current
sockets first, as the normal bind path does.

Fixes #22524

Signed-off-by: Dean Chen <[email protected]>
2026-12-06 07:12:03 -08:00
..