mirror of
https://github.com/norohind/hans.git
synced 2025-04-20 08:07:37 +03:00
Log invalid request type
This commit is contained in:
parent
295f6b4051
commit
c9b07d96bc
@ -60,7 +60,8 @@ void Server::handleUnknownClient(const TunnelHeader &header, int dataLength, uin
|
||||
|
||||
if (header.type != TunnelHeader::TYPE_CONNECTION_REQUEST || dataLength != sizeof(ClientConnectData))
|
||||
{
|
||||
syslog(LOG_DEBUG, "invalid request %s", Utility::formatIp(realIp).c_str());
|
||||
syslog(LOG_DEBUG, "invalid request (type %d) from %s", header.type,
|
||||
Utility::formatIp(realIp).c_str());
|
||||
sendReset(&client);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user