tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
16.89k stars 1.28k forks source link

net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon #11901

Closed bradfitz closed 3 weeks ago

bradfitz commented 3 weeks ago

In prep for most of the package funcs in net/interfaces to become methods in a long-lived netmon.Monitor that can cache things. (Many of the funcs are very heavy to call regularly, whereas the long-lived netmon.Monitor can subscribe to things from the OS and remember answers to questions it's asked regularly later)

Updates tailscale/corp#10910 Updates tailscale/corp#18960 Updates #7967 Updates #3299