forked from extern/smegmesh
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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user