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/cmd
Brad Fitzpatrick 53cfff109b ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs)
This adds a new ipn.MaskedPrefs embedding a ipn.Prefs, along with a
bunch of "has bits", kept in sync with tests & reflect.

Then it adds a Prefs.ApplyEdits(MaskedPrefs) method.

Then the ipn.Backend interface loses its weirdo SetWantRunning(bool)
method (that I added in 483141094c for "tailscale down")
and replaces it with EditPrefs (alongside the existing SetPrefs for now).

Then updates 'tailscale down' to use EditPrefs instead of SetWantRunning.

In the future, we can use this to do more interesting things with the
CLI, reconfiguring only certain properties without the reset-the-world
"tailscale up".

Updates #1436

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
..
cloner all: adjust Unix permissions for those without umasks 4 years ago
derper cmd/derper: add /bootstrap-dns handler 4 years ago
hello client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connections 4 years ago
microproxy cmd/microproxy: add -insecure flag 4 years ago
mkpkg cmd/mkpkg: support adding empty directories. 5 years ago
tailscale ipn: replace SetWantRunning(bool) with EditPrefs(MaskedPrefs) 4 years ago
tailscaled cmd/tailscaled: remove tailscaled binary on uninstall-system-daemon 4 years ago
tsshd net/interfaces: remove IsTailscaleIP, make callers use tsaddr. 4 years ago