X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=1193b43ce6c3b09df65a995db5a783f55f752f31;hp=a6144c5fa043319655d937f58324edb458d388b7;hb=b1cae6a2011f704dc4d3b02972def561d5c6bcb9;hpb=8538d6c661a083774e5b54163eaf5cdbcadcda6d diff --git a/src/protocol_auth.c b/src/protocol_auth.c index a6144c5f..1193b43c 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -456,7 +456,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { c->edge->from = mesh->self; c->edge->to = n; sockaddrcpy_setport(&c->edge->address, &c->address, atoi(hisport)); - c->edge->weight = dev_class_traits[devclass].edge_weight; + c->edge->weight = mesh->dev_class_traits[devclass].edge_weight; c->edge->connection = c; edge_add(mesh, c->edge);