]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Add test cases for random port bindings
[meshlink] / src / meshlink.c
index 496e5d3c753763560bf173591a3aa8f883559dd6..bd25e2aece872f13ba758b15d3993ba8b9d9e76e 100644 (file)
@@ -45,6 +45,7 @@ typedef struct {
 #include "xalloc.h"
 #include "ed25519/sha512.h"
 #include "discovery.h"
+#include "devtools.h"
 
 #ifndef MSG_NOSIGNAL
 #define MSG_NOSIGNAL 0
@@ -2308,6 +2309,8 @@ bool meshlink_set_port(meshlink_handle_t *mesh, int port) {
                return false;
        }
 
+       devtool_trybind_probe();
+
        bool rval = false;
 
        pthread_mutex_lock(&(mesh->mesh_mutex));