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
..
2020-02-14 13:35:49 -08:00
2020-10-19 20:18:31 -07:00
2021-03-20 21:34:13 -07:00
2021-01-14 12:56:48 -08:00
2021-05-05 08:25:15 -07:00
2021-05-16 14:52:00 -07:00
2020-07-10 14:32:58 -07:00
2020-06-25 19:14:24 -07:00
2021-02-23 09:07:38 -08:00
2021-02-05 15:25:33 -08:00
2021-04-02 09:02:54 -07:00
2020-05-25 08:50:48 -07:00
2020-05-03 14:05:32 -07:00
2021-05-10 09:43:44 -07:00