From: Guus Sliepen Date: Wed, 22 Jul 2020 18:35:18 +0000 (+0200) Subject: When activating a meta-connection, remember the address of the peer. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=d78e24a1f77084f2395b7f344533fc1819b0b3b0 When activating a meta-connection, remember the address of the peer. There was a possible situation where we did not remember the address of a peer when there is only a TCP connection. --- diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 2154faae..3720e14a 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -389,6 +389,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { c->edge->weight = mesh->dev_class_traits[devclass].edge_weight; c->edge->connection = c; + node_add_recent_address(mesh, n, &c->address); edge_add(mesh, c->edge); /* Notify everyone of the new edge */