From d78e24a1f77084f2395b7f344533fc1819b0b3b0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 22 Jul 2020 20:35:18 +0200 Subject: [PATCH] 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. --- src/protocol_auth.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5