From d580b3f09e8faf096ae7f84f2f4a10c1ae65149e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 15 Mar 2021 14:27:30 -0700 Subject: [PATCH] wgengine/router: fix go vet failure on BSDs Signed-off-by: Brad Fitzpatrick --- wgengine/router/router_userspace_bsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/router/router_userspace_bsd.go b/wgengine/router/router_userspace_bsd.go index 419a6d914..71ccd1706 100644 --- a/wgengine/router/router_userspace_bsd.go +++ b/wgengine/router/router_userspace_bsd.go @@ -130,7 +130,7 @@ func (r *userspaceBSDRouter) Set(cfg *Config) (reterr error) { // https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218508 // Instead add our whole /48, which works because we use a /48 route. // Full history: https://github.com/tailscale/tailscale/issues/1307 - tmp := netaddr.IPPrefix{addr.IP, 48} + tmp := netaddr.IPPrefix{IP: addr.IP, Bits: 48} arg = []string{"ifconfig", r.tunname, inet(tmp), tmp.String()} } else { arg = []string{"ifconfig", r.tunname, inet(addr), addr.String(), addr.IP.String()}