From 009b6208f5a15e932c7e85f7e357a6c821770274 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 14 Nov 2019 21:48:02 +0100 Subject: [PATCH] Fix logic error preventing fast update of reflexive address. When we are trying to communicate with peers that don't know our reflexive address, and we just learned our own one, we want to inform those peers of it immediately, so they can send PMTU probes to the right address. A logic error prevented this from happening in the common case. --- src/protocol_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_key.c b/src/protocol_key.c index 8a1d6000..480019e7 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -354,7 +354,7 @@ bool ans_key_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { /* Inform all other nodes we want to communicate with and which are reachable via this connection */ for splay_each(node_t, n, mesh->nodes) { - if(n->nexthop == c->node) { + if(n->nexthop != c->node) { continue; } -- 2.39.2