Remove messages (node)
This commit is contained in:
parent
4e6ab5645e
commit
768bc2bd2c
@ -187,7 +187,9 @@ namespace Components
|
|||||||
{
|
{
|
||||||
if (node.state == Node::STATE_INVALID && (Game::Sys_Milliseconds() - node.lastHeard) > NODE_INVALID_DELETE)
|
if (node.state == Node::STATE_INVALID && (Game::Sys_Milliseconds() - node.lastHeard) > NODE_INVALID_DELETE)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Removing invalid node %s\n", node.address.GetCString());
|
Logger::Print("Removing invalid node %s\n", node.address.GetCString());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -516,7 +518,9 @@ namespace Components
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Signature from %s for challenge '%s' is invalid!\n", address.GetCString(), entry->challenge.data());
|
Logger::Print("Signature from %s for challenge '%s' is invalid!\n", address.GetCString(), entry->challenge.data());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -550,8 +554,10 @@ namespace Components
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
// Unallowed connection
|
// Unallowed connection
|
||||||
Logger::Print("Node list requested by %s, but no valid session was present!\n", address.GetCString());
|
Logger::Print("Node list requested by %s, but no valid session was present!\n", address.GetCString());
|
||||||
|
#endif
|
||||||
Network::SendCommand(address, "nodeListError");
|
Network::SendCommand(address, "nodeListError");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -584,7 +590,9 @@ namespace Components
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Node %s tried to unregister using an invalid signature!\n", address.GetCString());
|
Logger::Print("Node %s tried to unregister using an invalid signature!\n", address.GetCString());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -635,7 +643,9 @@ namespace Components
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
session->lastTime = -1;
|
session->lastTime = -1;
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Challenge mismatch. Validating session for %s failed.\n", address.GetCString());
|
Logger::Print("Challenge mismatch. Validating session for %s failed.\n", address.GetCString());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -677,7 +687,9 @@ namespace Components
|
|||||||
|
|
||||||
if (data.empty() || !list.ParseFromString(data))
|
if (data.empty() || !list.ParseFromString(data))
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
Logger::Print("Received invalid node list from %s!\n", address.GetCString());
|
Logger::Print("Received invalid node list from %s!\n", address.GetCString());
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user