tailscale/tsnet
Denton Gentry a518e818cd
net/tsnet: add UDP support.
Add tsnet server.ListenPacket(), which returns a
net.PacketConn.

Support udp in the tsnet Dial().

Additionally:
1. Add a tsnet TailscaleIPs() function to return the IP
   addresses, both IPv4 and IPv6.
2. Fix a deadlock in tsnet server.Close() where it
   acquired s.mu.Lock() and then called listener.Close()
   which also tried to acquire s.mu.Lock(). This caused a
   hang in the new TestPackets test case.

Updates https://github.com/tailscale/tailscale/issues/5871

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-04 22:02:24 -08:00
..
example all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsnet.go net/tsnet: add UDP support. 2023-03-04 22:02:24 -08:00
tsnet_test.go net/tsnet: add UDP support. 2023-03-04 22:02:24 -08:00