mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-08 23:49:56 +00:00
all: update to wireguard-go API changes
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user