aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-07 02:06:36 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-07 02:06:36 +0000
commit46065a85b25850d205b39b12a194de29e1d5c91d (patch)
tree89b0b7d6a4a996f4d42ede294816539273c0d4a7 /src/mesh/gnunet-service-mesh_tunnel.c
parent7bb0e91714f97429d5a9d2ad7a88524701d3113d (diff)
downloadgnunet-46065a85b25850d205b39b12a194de29e1d5c91d.tar.gz
gnunet-46065a85b25850d205b39b12a194de29e1d5c91d.zip
- don't handshake on loopback tunnels
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c3
1 files changed, 2 insertions, 1 deletions
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)
1172 "Tunnel %s state is now %s\n", 1172 "Tunnel %s state is now %s\n",
1173 GMP_2s (t->peer), 1173 GMP_2s (t->peer),
1174 GMT_state2s (state)); 1174 GMT_state2s (state));
1175 if (MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state) 1175 if (myid != GMP_get_short_id(t->peer) &&
1176 MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state)
1176 { 1177 {
1177 rekey_tunnel (t, NULL); 1178 rekey_tunnel (t, NULL);
1178 } 1179 }