From 3d48d976de463a8da3b0dacff124519702c0ebf4 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 3 Aug 2019 22:56:40 +0200 Subject: [PATCH] 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. --- src/protocol_edge.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5