1
0
forked from extern/smegmesh
Added replace peers so that deleted nodes are automatically removed
This commit is contained in:
Tim Beatham 2023-11-28 14:43:55 +00:00
parent 32e7e4c7df
commit a82eab0686

View File

@ -226,7 +226,8 @@ func (m *WgMeshConfigApplyer) updateWgConf(mesh MeshProvider) error {
}
cfg := wgtypes.Config{
Peers: peerConfigs,
Peers: peerConfigs,
ReplacePeers: true,
}
dev, err := mesh.GetDevice()