From: Guus Sliepen Date: Sat, 3 Aug 2019 20:56:40 +0000 (+0200) Subject: Correctly update device class when receiving an ADD_EDGE message. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3d48d976de463a8da3b0dacff124519702c0ebf4;p=meshlink Correctly update device class when receiving an ADD_EDGE message. In some cases we didn't update the device class information when receiving an ADD_EDGE message. This could cause autoconnect to fail to work as expected. --- diff --git a/src/protocol_edge.c b/src/protocol_edge.c index 405961ed..12ab228f 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -180,6 +180,8 @@ bool add_edge_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { node_add(mesh, to); } + to->devclass = to_devclass; + /* Convert addresses */ address = str2sockaddr(to_address, to_port);