#define _GNU_SOURCE
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
assert(mesh[i]);
free(path);
- meshlink_add_address(mesh[i], "localhost");
+ assert(meshlink_set_canonical_address(mesh[i], meshlink_get_self(mesh[i]), "localhost", NULL));
data[i] = meshlink_export(mesh[i]);
assert(data[i]);