X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;fp=src%2Fprotocol_auth.c;h=04674e8dc9e8ff5758844e665c3ceb5fe7033741;hp=147c3b485b75393156ab74ac77f1fbff1637fba5;hb=995444c4f96bafecf7fb5d59510b3034459cf85c;hpb=2e318f379992a730f592b4c5261d26d8e1a38cfd diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 147c3b48..04674e8d 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -672,7 +672,8 @@ bool send_ack(connection_t *c) { if(choice) c->options |= OPTION_CLAMP_MSS; - get_config_int(lookup_config(c->config_tree, "Weight"), &c->estimated_weight); + if(!get_config_int(lookup_config(c->config_tree, "Weight"), &c->estimated_weight)) + get_config_int(lookup_config(config_tree, "Weight"), &c->estimated_weight); return send_request(c, "%d %s %d %x", ACK, myport, c->estimated_weight, (c->options & 0xffffff) | (experimental ? (PROT_MINOR << 24) : 0)); }