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/tailscale/cli
James Tucker ca4c940a4d ipn: introduce app connector advertisement preference and flags
Introduce a preference structure to store the setting for app connector
advertisement.

Introduce the associated flags:

  tailscale up --advertise-connector{=true,=false}
  tailscale set --advertise-connector{=true,=false}

```
% tailscale set --advertise-connector=false
% tailscale debug prefs | jq .AppConnector.Advertise
false
% tailscale set --advertise-connector=true
% tailscale debug prefs | jq .AppConnector.Advertise
true
% tailscale up --advertise-connector=false
% tailscale debug prefs | jq .AppConnector.Advertise
false
% tailscale up --advertise-connector=true
% tailscale debug prefs | jq .AppConnector.Advertise
true
```

Updates tailscale/corp#15437

Signed-off-by: James Tucker <james@tailscale.com>
2 years ago
..
bugreport.go all: update copyright and license headers 3 years ago
cert.go all: update copyright and license headers 3 years ago
cli.go cmd/tailscale/cli: make update visible in list (#8662) 2 years ago
cli_test.go ipn: introduce app connector advertisement preference and flags 2 years ago
configure-kube.go all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
configure-kube_test.go cmd/tailscale/cli: add "configure kubeconfig" subcommand 3 years ago
configure-synology.go all: replace /kb/ links with /s/ equivalents 3 years ago
configure.go cmd/tailscale/cli: update docs and unhide configure 3 years ago
debug.go cmd/tailscaled,*: add start of configuration file support 2 years ago
diag.go various: add detection and Taildrop for Unraid 3 years ago
diag_other.go all: update copyright and license headers 3 years ago
down.go all: update copyright and license headers 3 years ago
exitnode.go all: import x/exp/maps as xmaps to distinguish from Go 1.21 "maps" 2 years ago
exitnode_test.go cli: introduce exit-node subcommand to list and filter exit nodes 3 years ago
file.go cmd/tailscale: improve taildrop progress printer on Linux (#9878) 2 years ago
funnel.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
id-token.go all: update copyright and license headers 3 years ago
ip.go all: update copyright and license headers 3 years ago
licenses.go cmd/tailscale: refactor shared utility methods 3 years ago
login.go all: update copyright and license headers 3 years ago
logout.go all: update copyright and license headers 3 years ago
nc.go all: update copyright and license headers 3 years ago
netcheck.go cmd/tailscale/cli: fix panic in netcheck print when no DERP home 2 years ago
network-lock.go all: implement lock revoke-keys command 3 years ago
ping.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 3 years ago
risks.go util/testenv: add new package to hold InTest 3 years ago
serve_legacy.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_legacy_test.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_v2.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_v2_test.go cmd/tailscale/cli: improve error when bg serve config is present (#9961) 2 years ago
set.go ipn: introduce app connector advertisement preference and flags 2 years ago
set_test.go all: update copyright and license headers 3 years ago
ssh.go all: update copyright and license headers 3 years ago
ssh_exec.go all: update copyright and license headers 3 years ago
ssh_exec_js.go all: update copyright and license headers 3 years ago
ssh_exec_windows.go all: update copyright and license headers 3 years ago
ssh_unix.go types/logger, cmd/tailscale/cli: flesh out, simplify some non-unix build tags 2 years ago
status.go tailcfg,cmd/tailscale: add UrgentSecurityUpdate flag to ClientVersion (#9848) 2 years ago
switch.go all: update copyright and license headers 3 years ago
up.go ipn: introduce app connector advertisement preference and flags 2 years ago
update.go cmd/tailscale/cli: unhide auto-update flags and mark update as Beta (#9954) 2 years ago
version.go cmd/tailscale/cli,clientupdate: extract new clientupdate package (#8827) 3 years ago
web.go ipn/ipnlocal,client/web: add web client to tailscaled 2 years ago
web_test.go client/web: extract web client from cli package 3 years ago