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
Josh Bleecher Snyder 25df067dd0 all: adapt to opaque netaddr types
This commit is a mishmash of automated edits using gofmt:

gofmt -r 'netaddr.IPPort{IP: a, Port: b} -> netaddr.IPPortFrom(a, b)' -w .
gofmt -r 'netaddr.IPPrefix{IP: a, Port: b} -> netaddr.IPPrefixFrom(a, b)' -w .

gofmt -r 'a.IP.Is4 -> a.IP().Is4' -w .
gofmt -r 'a.IP.As16 -> a.IP().As16' -w .
gofmt -r 'a.IP.Is6 -> a.IP().Is6' -w .
gofmt -r 'a.IP.As4 -> a.IP().As4' -w .
gofmt -r 'a.IP.String -> a.IP().String' -w .

And regexps:

\w*(.*)\.Port = (.*)  ->  $1 = $1.WithPort($2)
\w*(.*)\.IP = (.*)  ->  $1 = $1.WithIP($2)

And lots of manual fixups.

Signed-off-by: Josh Bleecher Snyder <josh@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 wf: implement windows firewall using inet.af/wf. 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 all: adapt to opaque netaddr types 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: make ping --until-direct require direct connection to exit 0 3 years ago
status.go ipn/ipnstate: add PeerStatus.TailscaleIPs slice, deprecate TailAddr 3 years ago
up.go all: adapt to opaque netaddr types 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