]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Fix spelling errors.
[meshlink] / src / net_setup.c
index b5c25d03bec8ed4b60eeaaa811875c8c1d161af1..1b091db04034bd1a343390f508752d89de571b6a 100644 (file)
@@ -412,12 +412,9 @@ bool setup_myself(meshlink_handle_t *mesh) {
        /* Done */
 
        mesh->self->nexthop = mesh->self;
-       mesh->self->status.reachable = true;
 
        node_add(mesh, mesh->self);
 
-       graph(mesh);
-
        if(!config_scan_all(mesh, "current", "hosts", load_node, NULL)) {
                logger(mesh, MESHLINK_WARNING, "Could not scan all host config files");
        }
@@ -452,6 +449,7 @@ bool setup_myself(meshlink_handle_t *mesh) {
        /* Done. */
 
        mesh->last_config_check = mesh->loop.now.tv_sec;
+       mesh->last_unreachable = mesh->loop.now.tv_sec;
 
        return true;
 }