From 680b58305b3e102bec7e4d8155c5a3caafc2fca1 Mon Sep 17 00:00:00 2001 From: George Harvey <11440490+HarvsG@users.noreply.github.com> Date: Tue, 6 Apr 2021 15:29:56 +0100 Subject: [PATCH] corrects variable from testing --- wgsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgsd.go b/wgsd.go index 2277b00..c92f199 100644 --- a/wgsd.go +++ b/wgsd.go @@ -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) } }