1
0
forked from extern/smegmesh
- Finished for demo
This commit is contained in:
Tim Beatham 2024-01-18 10:36:55 +00:00
parent ad4d461332
commit 664e54b710

View File

@ -235,6 +235,11 @@ func (s *SyncerImpl) SyncMeshes() error {
var err error var err error
err = s.meshManager.GetRouteManager().UpdateRoutes()
if err != nil {
logging.Log.WriteErrorf("update routes failed %s", err.Error())
}
if hasChanges { if hasChanges {
logging.Log.WriteInfof("updating the WireGuard configuration") logging.Log.WriteInfof("updating the WireGuard configuration")
err = s.meshManager.ApplyConfig() err = s.meshManager.ApplyConfig()
@ -244,11 +249,6 @@ func (s *SyncerImpl) SyncMeshes() error {
} }
} }
err = s.meshManager.GetRouteManager().UpdateRoutes()
if err != nil {
logging.Log.WriteErrorf("update routes failed %s", err.Error())
}
return nil return nil
} }