X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=3fd80c47b944981a900f9409751bdec8bf00a907;hb=76a3ada4eb4032172c3d780915a07680f9954d42;hp=ccb7976c2700813131a62206f8cd7d3d1443db75;hpb=68de7b481e54d6a7c573d9a2d61f76d4d3a6b2f9;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index ccb7976c..3fd80c47 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -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) {