]> git.meshlink.io Git - meshlink/commitdiff
Make blacklisting persistent in the config file
authorSaverio Proto <zioproto@gmail.com>
Fri, 23 May 2014 07:19:02 +0000 (09:19 +0200)
committerSaverio Proto <zioproto@gmail.com>
Fri, 23 May 2014 07:19:02 +0000 (09:19 +0200)
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;
 
 }