diff --git a/pkg/sync/syncer.go b/pkg/sync/syncer.go index 472dfb7..359abc7 100644 --- a/pkg/sync/syncer.go +++ b/pkg/sync/syncer.go @@ -191,6 +191,7 @@ func (s *SyncerImpl) SyncMeshes() error { go sync() } + wg.Wait() logging.Log.WriteInfof("updating the WireGuard configuration") err := s.manager.ApplyConfig()