X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink.c;h=c34b24c9643f4bde69e2904877502e78c01f2b86;hp=ee62078d8b16a55a31c363eb3d77f01fdbdb5b63;hb=a5f139f0cef76bb2ef6d1bb888869cf17ca97f5d;hpb=a23ddd4f4e273b2ed68fe173b4faa69aadc98756 diff --git a/src/meshlink.c b/src/meshlink.c index ee62078d..c34b24c9 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -3456,6 +3456,10 @@ static bool blacklist(meshlink_handle_t *mesh, node_t *n) { */ for list_each(connection_t, c, mesh->connections) { if(c->node == n) { + if(c->status.active) { + send_error(mesh, c, BLACKLISTED, "blacklisted"); + } + shutdown(c->socket, SHUT_RDWR); } }