summaryrefslogtreecommitdiffhomepage
path: root/control
diff options
context:
space:
mode:
authorBrad Fitzpatrick <brad@danga.com>2020-03-16 20:27:00 -0700
committerBrad Fitzpatrick <brad@danga.com>2020-03-17 08:53:05 -0700
commite085aec8ef348a79f0843efb89b85ebb11368b76 (patch)
tree78b42e17bb267e2ec18cd70822e4f8066408f57f /control
parentdd14b658a2f42a3b4d78682e4f4f82f730262c5c (diff)
downloadtailscale-e085aec8ef348a79f0843efb89b85ebb11368b76.tar.xz
tailscale-e085aec8ef348a79f0843efb89b85ebb11368b76.zip
all: update to wireguard-go API changes
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control')
-rw-r--r--control/controlclient/auto_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/control/controlclient/auto_test.go b/control/controlclient/auto_test.go
index d4a090a37..1f08045cf 100644
--- a/control/controlclient/auto_test.go
+++ b/control/controlclient/auto_test.go
@@ -250,7 +250,7 @@ func TestControl(t *testing.T) {
t.Run("route all traffic via client 1", func(t *testing.T) {
aips := []wgcfg.CIDR{}
aips = append(aips, c1NetMap.Addresses...)
- aips = append(aips, *allZeros)
+ aips = append(aips, allZeros)
affectedPeers, err := s.control.SetAllowedIPs(c1.nkey, aips)
if err != nil {
@@ -266,7 +266,7 @@ func TestControl(t *testing.T) {
_ = c2NetMap
foundAllZeros := false
for _, cidr := range c2NetMap.Peers[0].AllowedIPs {
- if cidr == *allZeros {
+ if cidr == allZeros {
foundAllZeros = true
}
}
@@ -292,7 +292,7 @@ func TestControl(t *testing.T) {
foundAllZeros := false
for _, cidr := range c2NetMap.Peers[0].AllowedIPs {
- if cidr == *allZeros {
+ if cidr == allZeros {
foundAllZeros = true
}
}