]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Add a function to set the default white/blacklisting behaviour.
[meshlink] / src / meshlink.c
index df257bf6e2a81ce535350491a4b5201a3dac11eb..6ebbdcb0aab4481f62d1a368c488f3f7176f823a 100644 (file)
@@ -1825,6 +1825,10 @@ void meshlink_whitelist(meshlink_handle_t *mesh, meshlink_node_t *node) {
        return;
 }
 
+void meshlink_set_default_blacklist(meshlink_handle_t *mesh, bool blacklist) {
+       mesh->default_blacklist = blacklist;
+}
+
 /* Hint that a hostname may be found at an address
  * See header file for detailed comment.
  */