Mihai Parparita bdc45b9066 wgengine/magicsock: fix panic when rebinding fails
We would replace the existing real implementation of nettype.PacketConn
with a blockForeverConn, but that violates the contract of atomic.Value
(where the type cannot change). Fix by switching to a pointer value
(atomic.Pointer[nettype.PacketConn]).

A longstanding issue, but became more prevalent when we started binding
connections to interfaces on macOS and iOS (), which could lead to
the bind call failing if the interface was no longer available.

Fixes 

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2022-12-08 16:34:14 -08:00
..
2022-09-29 13:36:13 -07:00
2022-08-04 11:52:16 -07:00
2022-11-04 07:25:42 -07:00
2022-06-07 12:16:16 -07:00
2022-11-04 07:25:42 -07:00