]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Make blacklisting persistent in the config file
[meshlink] / src / meshlink.c
index 01d3c6c38f1e7f587a3d6fd3dcb27b7cd116eaa9..319c765cdffaf7394bdaa136700d69231fc213a0 100644 (file)
@@ -1252,6 +1252,9 @@ void meshlink_blacklist(meshlink_handle_t *mesh, meshlink_node_t *node) {
     n = (node_t*)node;
     n->status.blacklisted=true;
        fprintf(stderr, "Blacklisted %s.\n",node->name);
+
+       //Make blacklisting persistent in the config file
+       append_config_file(mesh, n->name, "blacklisted", "1");
     return;
 
 }