diff options
| author | Brad Fitzpatrick <brad@danga.com> | 2020-03-16 20:27:00 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2020-03-17 08:53:05 -0700 |
| commit | e085aec8ef348a79f0843efb89b85ebb11368b76 (patch) | |
| tree | 78b42e17bb267e2ec18cd70822e4f8066408f57f /ipn | |
| parent | dd14b658a2f42a3b4d78682e4f4f82f730262c5c (diff) | |
| download | tailscale-e085aec8ef348a79f0843efb89b85ebb11368b76.tar.xz tailscale-e085aec8ef348a79f0843efb89b85ebb11368b76.zip | |
all: update to wireguard-go API changes
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'ipn')
| -rw-r--r-- | ipn/prefs.go | 2 | ||||
| -rw-r--r-- | ipn/prefs_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ipn/prefs.go b/ipn/prefs.go index 015a8c202..5d977b224 100644 --- a/ipn/prefs.go +++ b/ipn/prefs.go @@ -113,7 +113,7 @@ func compareIPNets(a, b []wgcfg.CIDR) bool { return false } for i := range a { - if !a[i].IP.Equal(&b[i].IP) || a[i].Mask != b[i].Mask { + if !a[i].IP.Equal(b[i].IP) || a[i].Mask != b[i].Mask { return false } } diff --git a/ipn/prefs_test.go b/ipn/prefs_test.go index 2bfcb8f82..4f9c0fdb2 100644 --- a/ipn/prefs_test.go +++ b/ipn/prefs_test.go @@ -32,7 +32,7 @@ func TestPrefsEqual(t *testing.T) { if err != nil { panic(err) } - ns = append(ns, *n) + ns = append(ns, n) } return ns } |
