From: Saverio Proto Date: Fri, 23 May 2014 07:19:02 +0000 (+0200) Subject: Make blacklisting persistent in the config file X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=b8d74a04aff53d6697a1fa5ee32a77f878c65a84 Make blacklisting persistent in the config file --- diff --git a/src/meshlink.c b/src/meshlink.c index 01d3c6c3..319c765c 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -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; }