- don't handshake on loopback tunnels
authorBart Polot <bart@net.in.tum.de>
Thu, 7 Nov 2013 02:06:36 +0000 (02:06 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 7 Nov 2013 02:06:36 +0000 (02:06 +0000)
src/mesh/gnunet-service-mesh_tunnel.c

index 4c1eba895705bf632ce651482d340bf315e15c8c..d266a93fb14f3c5498f239c751fe7625bc245022 100644 (file)
@@ -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);
   }