From: Bart Polot Date: Thu, 7 Nov 2013 02:06:36 +0000 (+0000) Subject: - don't handshake on loopback tunnels X-Git-Tag: initial-import-from-subversion-38251~6215 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46065a85b25850d205b39b12a194de29e1d5c91d;p=oweals%2Fgnunet.git - don't handshake on loopback tunnels --- diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 4c1eba895..d266a93fb 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -1172,7 +1172,8 @@ GMT_change_state (struct MeshTunnel3* t, enum MeshTunnel3State state) "Tunnel %s state is now %s\n", GMP_2s (t->peer), GMT_state2s (state)); - if (MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state) + if (myid != GMP_get_short_id(t->peer) && + MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state) { rekey_tunnel (t, NULL); }