From: Guus Sliepen Date: Sun, 15 Jul 2018 09:19:19 +0000 (+0200) Subject: Pass appname in the ID string during invitations as well. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=9b93553d7d5dbe39e2aef6221e68dab62c2f3c08;p=meshlink Pass appname in the ID string during invitations as well. --- diff --git a/src/meshlink.c b/src/meshlink.c index fd9b8827..573dfe49 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -2126,7 +2126,7 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) { mesh->blen = 0; - if(!sendline(mesh->sock, "0 ?%s %d.%d", b64key, PROT_MAJOR, 1)) { + if(!sendline(mesh->sock, "0 ?%s %d.%d %s", b64key, PROT_MAJOR, 1, mesh->appname)) { logger(mesh, MESHLINK_DEBUG, "Error sending request to %s port %s: %s\n", address, port, strerror(errno)); closesocket(mesh->sock); meshlink_errno = MESHLINK_ENETWORK;