You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/tstun
Josh Bleecher Snyder 0ad92b89a6 net/tstun: fix data races
To remove some multi-case selects, we intentionally allowed
sends on closed channels (cc23049cd2).

However, we also introduced concurrent sends and closes,
which is a data race.

This commit fixes the data race. The mutexes here are uncontended,
and thus very cheap.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
fake.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
ifstatus_noop.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
ifstatus_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
tun.go net/tstun: add a debug envvar to override tun MTU. 4 years ago
tun_notwindows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
tun_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
wrap.go net/tstun: fix data races 3 years ago
wrap_test.go go.mod: update netaddr 4 years ago