all: update to wireguard-go API changes

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-03-16 20:27:00 -07:00
parent dd14b658a2
commit e085aec8ef
9 changed files with 14 additions and 11 deletions

View File

@@ -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
}
}