summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 364c0f2a3..ec2d3c507 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -410,9 +410,9 @@ bool connection::SendPacket(char *message, const char* sendhost)
if (cn->GetState() == STATE_DISCONNECTED)
{
- log(DEBUG,"Main route to %s is down, seeking alternative",host);
+ log(DEBUG,"Main route to %s is down, seeking alternative",sendhost);
// fix: can only route one hop to avoid a loop
- if (!strncmp(message,"R ",2))
+ if (strncmp(message,"R ",2))
{
// this route is down, we must re-route the packet through an available point in the mesh.
for (int k = 0; k < this->connectors.size(); k++)