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
Brad Fitzpatrick adc97e9c4d cmd/tailscale: make --accept-routes default true on Windows, macOS GUI
One of the most annoying parts of using the Tailscale CLI on Windows
and the macOS GUI is that Tailscale's GUIs default to running with
"Route All" (accept all non-exitnode subnet routes) but the CLI--being
originally for Linux--uses the Linux default, which is to not accept
subnets.

Which means if a Windows user does, e.g.:

    tailscale up --advertise-exit-node
Or:
    tailscale up --shields-up

... then it'd warn about reverting the --accept-routes option, which the user
never explicitly used.

Instead, make the CLI's default match the platform/GUI's default.

Change-Id: I15c804b3d9b0266e9ca8651e0c09da0f96c9ef8d
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
auth-redirect.html cmd/tailscale/web: add support for QNAP 3 years ago
bugreport.go cmd/tailscale/cli: add Stdout, Stderr and output through them 3 years ago
cert.go cmd/tailscale/cli: add Stdout, Stderr and output through them 3 years ago
cli.go safesocket: add ConnectionStrategy, provide control over fallbacks 3 years ago
cli_test.go cmd/tailscale: make --accept-routes default true on Windows, macOS GUI 3 years ago
debug.go cmd/tailscale/cli: add --watch flag to "debug metrics" subcommand 3 years ago
diag.go cmd/tailscale: print more detail in connection failure error message 3 years ago
diag_other.go all: gofmt with Go 1.17 3 years ago
down.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
file.go cmd/tailscale: make file cp send files via tailscaled localapi 3 years ago
ip.go cmd/tailscale: add ip -1 flag 3 years ago
logout.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
netcheck.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
ping.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
status.go ipn/ipnstate, cmd/tailscale: add Online bool to tailscale status & --json 3 years ago
up.go cmd/tailscale: make --accept-routes default true on Windows, macOS GUI 3 years ago
version.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
web.css cli: web advertise exit node button 3 years ago
web.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 3 years ago
web.html cli: web advertise exit node button 3 years ago
web_test.go cmd/tailscale: update web server test copyright 3 years ago