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>
2022-03-10 10:51:05 -07:00
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 2021-07-19 15:31:56 -07:00
cloner tailcfg: make Node.Hostinfo a HostinfoView 2022-02-16 12:55:57 -08:00
derper cmd/derper: add --stun-port flag 2022-03-08 07:19:33 -08:00
derpprobe cmd/derpprobe: check derper TLS certs too 2022-01-27 10:09:04 -08:00
hello tailcfg: make Node.Hostinfo a HostinfoView 2022-02-16 12:55:57 -08:00
mkpkg cmd/mkpkg: allow zero files in a package. 2021-06-07 16:22:23 -07:00
printdep cmd/printdep: add flag to print out Go toolchain tarball URL 2022-01-06 08:44:17 -08:00
speedtest cmd: upgrade to ffcli v3 2021-09-14 13:21:55 -07:00
tailscale cmd/tailscale/cli, ipn: move exit node IP parsing and validation from cli into prefs. 2022-03-10 10:51:05 -07:00
tailscaled ssh/tailssh: create login sessions for new connections 2022-03-08 21:47:19 -08:00
testcontrol cmd/testcontrol: add test control server 2021-08-19 17:50:48 -07:00
tsshd tsshd: fix double exit with different exit codes 2021-11-23 09:19:59 -08:00