Report unhandled packets in string form.

This commit is contained in:
2020-08-22 19:19:46 +02:00
parent 0ac600e223
commit 43f2def80b
5 changed files with 242 additions and 4 deletions

View File

@@ -278,11 +278,11 @@ void CNLoginServer::handlePacket(CNSocket* sock, CNPacketData* data) {
break;
}
default:
std::cerr << "OpenFusion: LOGIN UNIMPLM ERR. PacketType: " << data->type << std::endl;
std::cerr << "OpenFusion: LOGIN UNIMPLM ERR. PacketType: " << Defines::p2str(CL2LS, data->type) << " (" << data->type << ")" << std::endl;
break;
}
}
void CNLoginServer::killConnection(CNSocket* cns) {
loginSessions.erase(cns);
}
}