mirror of
https://github.com/norohind/hans.git
synced 2026-11-26 03:16:43 +03:00
Log invalid request type
This commit is contained in:
1 parent
295f6b4051
commit
c9b07d96bc
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user