corrects variable from testing

This commit is contained in:
George Harvey
2021-04-06 15:29:56 +01:00
committed by GitHub
parent b5bd1bd874
commit 680b58305b

View File

@@ -202,7 +202,7 @@ func getPeers(client wgctrlClient, zone *Zone, state request.Request) (
peers = append(peers, device.Peers...)
} else {
for _, peer := range device.Peers{
if t := networkSizes(networks); t > 1 { // could be more complex, e.g allow user to specify a threshold
if t := networkSizes(peer.AllowedIPs); t > 1 { // could be more complex, e.g allow user to specify a threshold
peers = append(peers, peer)
}
}