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
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>
3 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner tailcfg: make Node.Hostinfo a HostinfoView 3 years ago
derper cmd/derper: add --stun-port flag 3 years ago
derpprobe cmd/derpprobe: check derper TLS certs too 3 years ago
hello tailcfg: make Node.Hostinfo a HostinfoView 3 years ago
mkpkg cmd/mkpkg: allow zero files in a package. 3 years ago
printdep cmd/printdep: add flag to print out Go toolchain tarball URL 3 years ago
speedtest cmd: upgrade to ffcli v3 3 years ago
tailscale cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 3 years ago
tailscaled ssh/tailssh: create login sessions for new connections 3 years ago
testcontrol cmd/testcontrol: add test control server 3 years ago
tsshd tsshd: fix double exit with different exit codes 3 years ago