mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-12 09:30:52 +01:00
main
- Finished for demo
This commit is contained in:
parent
ad4d461332
commit
664e54b710
@ -235,6 +235,11 @@ func (s *SyncerImpl) SyncMeshes() error {
|
||||
|
||||
var err error
|
||||
|
||||
err = s.meshManager.GetRouteManager().UpdateRoutes()
|
||||
if err != nil {
|
||||
logging.Log.WriteErrorf("update routes failed %s", err.Error())
|
||||
}
|
||||
|
||||
if hasChanges {
|
||||
logging.Log.WriteInfof("updating the WireGuard configuration")
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user