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
Aaron Klotz f8a4df66de cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs.
We need to be able to provide the ability for the GUI clients to resolve and set
the exit node IP from an untrusted string, thus enabling the ability to specify
that information via enterprise policy.

This patch moves the relevant code out of the handler for `tailscale up`,
into a method on `Prefs` that may then be called by GUI clients.

We also update tests accordingly.

Updates https://github.com/tailscale/corp/issues/4239

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2 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: propagate tailscaled 403s as AccessDeniedErrors 2 years ago
cli.go cmd/tailscale: allow use of flags in gokrazy 2 years ago
cli_test.go cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 2 years ago
configure-host.go cmd/tailscale: make configure-host on Synology also add CAP_NET_RAW 2 years ago
debug.go cmd/tailscale: add "tailscale debug hostinfo" subcommand 2 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: propagate tailscaled 403s as AccessDeniedErrors 2 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 envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2 years ago
ping.go cmd/tailscale: improve ping error message when logged out 3 years ago
status.go cmd/tailscale: improve ping error message when logged out 3 years ago
up.go cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 2 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: use html/template for synoTokenRedirect 2 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