From 9bd75d5668e89dc41857e01d62becce79a9f9ac8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 22 Mar 2012 13:35:32 +0200 Subject: [PATCH] Log at info level when a banned client connects --- src/server.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 87d43dc6..7afb2284 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1898,13 +1898,17 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) try{ Address address = m_con.GetPeerAddress(peer_id); + std::string addr_s = address.serializeString(); // drop player if is ip is banned - if(m_banmanager.isIpBanned(address.serializeString())){ + if(m_banmanager.isIpBanned(addr_s)){ + infostream<<"Server: A banned client tried to connect from " + <