diff --git a/service/OneService.cpp b/service/OneService.cpp index ba321282c..0a9842a7d 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2617,8 +2617,9 @@ public: r->second->sync(); } for(std::map< InetAddress, SharedPtr >::iterator r(n.managedRoutes().begin());r!=n.managedRoutes().end();++r) { - if (r->second->via()) + if (r->second->via() && (!r->second->target().isDefaultRoute() || _node->online())) { r->second->sync(); + } } }