#include "xalloc.h"
#include "ed25519/sha512.h"
#include "discovery.h"
+#include "devtools.h"
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
return false;
}
+ devtool_trybind_probe();
+
bool rval = false;
pthread_mutex_lock(&(mesh->mesh_mutex));
done:
pthread_mutex_unlock(&(mesh->mesh_mutex));
- return rval;
+ return rval && meshlink_get_port(mesh) == port;
}
void meshlink_set_invitation_timeout(meshlink_handle_t *mesh, int timeout) {