tailscale/control/controlclient
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>
2021-05-16 14:52:00 -07:00
..
auto.go ipnlocal: don't pause the controlclient until we get at least one netmap. 2021-04-30 09:18:13 -04:00
client.go controlclient: extract a Client interface and rename Client->Auto. 2021-04-30 00:09:35 -04:00
controlclient_test.go controlclient: extract a Client interface and rename Client->Auto. 2021-04-30 00:09:35 -04:00
debug_test.go tailcfg, control/controlclient: add goroutine dump debug feature 2021-03-03 10:56:01 -08:00
debug.go tailcfg, control/controlclient: add goroutine dump debug feature 2021-03-03 10:56:01 -08:00
direct_test.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
direct.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
hostinfo_linux.go hostifo: update LXC, add Cloud Run. 2021-04-06 17:21:16 -07:00
hostinfo_windows.go control/controlclient: cache Windows version 2021-03-15 21:40:32 -07:00
map_test.go tailcfg, control/controlclient: accept nil MapResponse.Node (mapver 18) 2021-04-19 11:53:21 -07:00
map.go tailcfg, control/controlclient: accept nil MapResponse.Node (mapver 18) 2021-04-19 11:53:21 -07:00
sign_supported.go control/controlclient: return correct certificate 2021-04-07 09:42:13 -04:00
sign_unsupported.go control/controlclient: sign RegisterRequest (#1549) 2021-03-26 10:01:08 -04:00
sign.go control/controlclient: sign RegisterRequest (#1549) 2021-03-26 10:01:08 -04:00
status.go controlclient: extract a Client interface and rename Client->Auto. 2021-04-30 00:09:35 -04:00