]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Clear reachability times in host config files received during a join.
[meshlink] / src / meshlink.c
index 0fbcf1535379810fd2295d4d28287a87b1beb774..d1987ab8c1ebfe36deb62cec72c043e814f6ef48 100644 (file)
@@ -668,6 +668,10 @@ static bool finalize_join(meshlink_handle_t *mesh, const void *buf, uint16_t len
                        }
                }
 
+               /* Clear the reachability times, since we ourself have never seen these nodes yet */
+               n->last_reachable = 0;
+               n->last_unreachable = 0;
+
                if(!node_write_config(mesh, n)) {
                        free_node(n);
                        return false;