]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Put minor protocol version in connection options so other nodes can see it.
[meshlink] / src / protocol_auth.c
index ccb7976c2700813131a62206f8cd7d3d1443db75..3fd80c47b944981a900f9409751bdec8bf00a907 100644 (file)
@@ -506,7 +506,7 @@ bool send_ack(connection_t *c) {
 
        get_config_int(lookup_config(c->config_tree, "Weight"), &c->estimated_weight);
 
-       return send_request(c, "%d %s %d %x", ACK, myport, c->estimated_weight, c->options);
+       return send_request(c, "%d %s %d %x", ACK, myport, c->estimated_weight, (c->options & 0xffffff) | (PROT_MINOR << 24));
 }
 
 static void send_everything(connection_t *c) {