forked from extern/smegmesh
Bugfix
Added replace peers so that deleted nodes are automatically removed
This commit is contained in:
parent
32e7e4c7df
commit
a82eab0686
@ -226,7 +226,8 @@ func (m *WgMeshConfigApplyer) updateWgConf(mesh MeshProvider) error {
|
||||
}
|
||||
|
||||
cfg := wgtypes.Config{
|
||||
Peers: peerConfigs,
|
||||
Peers: peerConfigs,
|
||||
ReplacePeers: true,
|
||||
}
|
||||
|
||||
dev, err := mesh.GetDevice()
|
||||
|
Loading…
Reference in New Issue
Block a user