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 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
..
cloner all: adjust Unix permissions for those without umasks 3 years ago
derper cmd/derper: add /bootstrap-dns handler 3 years ago
hello client/tailscale/apitype: move local API types to new apitype package 3 years ago
microproxy cmd/microproxy: add -insecure flag 4 years ago
mkpkg cmd/mkpkg: support adding empty directories. 4 years ago
tailscale cmd/tailscale: fix another up warning with exit nodes 3 years ago
tailscaled all: use lower-case letters at the start of error message 3 years ago
tsshd net/interfaces: return all Tailscale addresses from Tailscale(). 3 years ago