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 e78e26b6fb cmd/tailscale: fix another up warning with exit nodes
The --advertise-routes and --advertise-exit-node flags both mutating
one pref is the gift that keeps on giving.

I need to rewrite the this up warning code to first map prefs back to
flag values and then just compare flags instead of comparing prefs,
but this is the minimal fix for now.

This also includes work on the tests, to make them easier to write
(and more accurate), by letting you write the flag args directly and
have that parse into the upArgs/MaskedPrefs directly, the same as the
code, rather than them being possibly out of sync being written by
hand.

Fixes https://twitter.com/EXPbits/status/1390418145047887877

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
bugreport.go cmd/tailscale, ipn/localapi: add "tailscale bugreport" subcommand 3 years ago
cli.go cmd/tailscale/cli: fix running from Xcode 3 years ago
cli_test.go cmd/tailscale: fix another up warning with exit nodes 3 years ago
debug.go ipn/localapi, cmd/tailscale: add API to get prefs, CLI debug command to show 3 years ago
down.go ipn/localapi: move EditPrefs to localapi 3 years ago
file.go cmd/tailscale: make 'file cp' have better error messages on bad targets 3 years ago
ip.go cmd/tailscale/cli: let ip take a peername 3 years ago
logout.go cmd/tailscale: fix command descriptions (#1710) 3 years ago
netcheck.go net/portmapper: add NAT-PMP client, move port mapping service probing 3 years ago
ping.go cmd/tailscale: fail if tailscaled closes the IPN connection 3 years ago
status.go ipn/ipnstate: add PeerStatus.TailscaleIPs slice, deprecate TailAddr 3 years ago
up.go cmd/tailscale: fix another up warning with exit nodes 3 years ago
version.go cmd/tailscale, ipn/localapi: get daemon version from localapi status 3 years ago
web.css cmd/tailscale/cli: split out web.css file 3 years ago
web.go cmd/tailscale/cli: don't report outdated auth URL to web UI 3 years ago
web.html cmd/tailscale/cli: skip new tab on web login 3 years ago