feat: Basic linting config

This commit is contained in:
Anton Ovchinnikov
2025-07-13 23:50:27 +02:00
parent 4ec3e97a54
commit 053d73048c
9 changed files with 82 additions and 14 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ func (n *WireGuardNetwork) configureDevice(config Config) error {
// rotations and connection disruptions.
n.peers = make(map[string]*peer, len(config.Peers))
wgPeers := make(map[string]*wgtypes.Peer, len(dev.Peers))
for i, _ := range dev.Peers {
for i := range dev.Peers {
wgPeers[secret.Secret(dev.Peers[i].PublicKey[:]).String()] = &dev.Peers[i]
}
for _, pc := range config.Peers {