X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=65736253020c08cf49d6c6758b4c37187aaee749;hb=3b13c8881100e12d5a4bf184611188bcb57e7144;hp=76188f6ebdba79fa11837daffeea33b897750ad0;hpb=a1177c9aef02b7b9fb2702924d78c2b135a12ff2;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 76188f6e..65736253 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -444,7 +444,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { sockaddr2str(&c->address, &hisaddress, NULL); c->edge->address = str2sockaddr(hisaddress, hisport); free(hisaddress); - c->edge->weight = weight_from_dclass(dclass); + c->edge->weight = cweight_from_dclass(dclass); c->edge->connection = c; c->edge->options = c->options;