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-Tag: 0.4.dev-20120326~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9bd75d5668e89dc41857e01d62becce79a9f9ac8;p=oweals%2Fminetest.git Log at info level when a banned client connects --- diff --git a/src/server.cpp b/src/server.cpp index 87d43dc69..7afb22846 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 " + <