mirror of
https://github.com/jwhited/wgsd.git
synced 2025-09-15 10:54:27 +08:00
corrects variable from testing
This commit is contained in:
2
wgsd.go
2
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user