]> git.meshlink.io Git - meshlink/blobdiff - test/trio2.c
Allow meshlink_open() to be called with a NULL name.
[meshlink] / test / trio2.c
index 283b280a08085c951e09f557a5f48d1a82cf4e94..d57af9601c29bfae753f68de4eabdb7a165baf77 100644 (file)
@@ -65,7 +65,7 @@ int main() {
                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]);