tailscale/wgengine
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
..
bench all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
filter all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
magicsock all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
monitor all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
netstack all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
router all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
wgcfg all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
wglog wgengine/wglog: optimize wireguardGoString 2021-05-11 14:28:47 -07:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
pendopen.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
userspace_ext_test.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 2021-04-06 21:37:28 -07:00
userspace_test.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
userspace.go all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 2021-03-27 09:27:11 -07:00
watchdog.go wgengine: take in dns.Config, split out to resolver.Config and dns.OSConfig. 2021-04-02 00:59:44 -07:00
wgengine.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 2021-04-13 10:12:14 -07:00