]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Fix spelling errors.
[meshlink] / src / net_setup.c
index 8c8ef6ed453809d05af4e24fad10627e8b5c5681..1b091db04034bd1a343390f508752d89de571b6a 100644 (file)
@@ -260,8 +260,6 @@ bool node_write_config(meshlink_handle_t *mesh, node_t *n) {
                return false;
        }
 
-
-
        return true;
 }
 
@@ -414,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");
        }
@@ -454,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;
 }