]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
explicit declaration of node_write_dclass
[meshlink] / src / protocol_auth.c
index b05b04b1c1317bfe20c1e47b87aef6682b59ecde..76188f6ebdba79fa11837daffeea33b897750ad0 100644 (file)
@@ -36,6 +36,8 @@
 #include "utils.h"
 #include "xalloc.h"
 #include "ed25519/sha512.h"
+    
+extern bool node_write_dclass(meshlink_handle_t *mesh, node_t *n);
 
 static bool send_proxyrequest(meshlink_handle_t *mesh, connection_t *c) {
        switch(mesh->proxytype) {
@@ -411,6 +413,9 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
                }
        }
 
+       n->dclass = dclass;
+       node_write_dclass(mesh, n);
+
        n->connection = c;
        c->node = n;
        if(!(c->options & options & OPTION_PMTU_DISCOVERY)) {