mirror of
https://github.com/jwhited/wgsd.git
synced 2025-04-03 18:49:32 +08:00
fix format error
This commit is contained in:
parent
b213b48876
commit
b5bd1bd874
2
wgsd.go
2
wgsd.go
@ -201,7 +201,7 @@ func getPeers(client wgctrlClient, zone *Zone, state request.Request) (
|
||||
if !zone.onlySubnets {
|
||||
peers = append(peers, device.Peers...)
|
||||
} else {
|
||||
for _, peer in range device.Peers{
|
||||
for _, peer := range device.Peers{
|
||||
if t := networkSizes(networks); t > 1 { // could be more complex, e.g allow user to specify a threshold
|
||||
peers = append(peers, peer)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user