From: Perttu Ahola Date: Thu, 22 Mar 2012 11:35:32 +0000 (+0200) Subject: Log at info level when a banned client connects X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9bd75d5668e89dc41857e01d62becce79a9f9ac8;p=zefram%2Fminetest%2Fminetest_engine.git Log at info level when a banned client connects --- 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 " + <