]> git.meshlink.io Git - meshlink/blobdiff - src/protocol.c
Add a callback that notifies the application when it is blacklisted.
[meshlink] / src / protocol.c
index e2842abe5c7665ab341b1af86213c3f4f981b04b..5d28883778aa4957a5b849e547aee89a422c76f6 100644 (file)
@@ -140,7 +140,7 @@ bool receive_request(meshlink_handle_t *mesh, connection_t *c, const char *reque
                        logger(mesh, MESHLINK_DEBUG, "Got %s from %s: %s", request_name[reqno], c->name, request);
                }
 
-               if((c->allow_request != ALL) && (c->allow_request != reqno)) {
+               if((c->allow_request != ALL) && (c->allow_request != reqno) && (reqno != ERROR)) {
                        logger(mesh, MESHLINK_ERROR, "Unauthorized request from %s", c->name);
                        return false;
                }