From a82eab068643e5774741edcdb11c3b210c0999f8 Mon Sep 17 00:00:00 2001 From: Tim Beatham Date: Tue, 28 Nov 2023 14:43:55 +0000 Subject: [PATCH] Bugfix Added replace peers so that deleted nodes are automatically removed --- pkg/mesh/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mesh/config.go b/pkg/mesh/config.go index ff51311..145848f 100644 --- a/pkg/mesh/config.go +++ b/pkg/mesh/config.go @@ -226,7 +226,8 @@ func (m *WgMeshConfigApplyer) updateWgConf(mesh MeshProvider) error { } cfg := wgtypes.Config{ - Peers: peerConfigs, + Peers: peerConfigs, + ReplacePeers: true, } dev, err := mesh.GetDevice()