Codechange: remove always-empty "address" from NetworkContentSocketHandler
When ever you saw this debug lines (which you never should), they showed an empty address. It is also not very useful to have, as it always points to a known server anyway.
This commit is contained in:

committed by
Patric Stout

parent
31897eaa7d
commit
cd757d53ca
@@ -171,9 +171,9 @@ bool NetworkContentSocketHandler::HandlePacket(Packet *p)
|
||||
|
||||
default:
|
||||
if (this->HasClientQuit()) {
|
||||
DEBUG(net, 0, "[tcp/content] received invalid packet type %d from %s", type, this->client_addr.GetAddressAsString().c_str());
|
||||
DEBUG(net, 0, "[tcp/content] received invalid packet type %d", type);
|
||||
} else {
|
||||
DEBUG(net, 0, "[tcp/content] received illegal packet from %s", this->client_addr.GetAddressAsString().c_str());
|
||||
DEBUG(net, 0, "[tcp/content] received illegal packet");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ bool NetworkContentSocketHandler::ReceivePackets()
|
||||
*/
|
||||
bool NetworkContentSocketHandler::ReceiveInvalidPacket(PacketContentType type)
|
||||
{
|
||||
DEBUG(net, 0, "[tcp/content] received illegal packet type %d from %s", type, this->client_addr.GetAddressAsString().c_str());
|
||||
DEBUG(net, 0, "[tcp/content] received illegal packet type %d", type);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user