From 4cea2b13b221bed66023254dd3356f2548a08df4 Mon Sep 17 00:00:00 2001 From: Javier Smooth Date: Mon, 23 Nov 2015 17:34:55 +0000 Subject: Add IP blocking for misbehaving nodes (adapted from Boolberry) With minor cleanup and fixes (spelling, indent) by moneromooo --- contrib/epee/include/net/abstract_tcp_server2.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'contrib/epee') diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 612e2b417..b75a9ecaa 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -899,9 +899,7 @@ POP_WARNINGS boost::bind(&boosted_tcp_server::handle_accept, this, boost::asio::placeholders::error)); - bool r = conn->start(true, 1 < m_threads_count); - if (!r) - _erro("[sock " << conn->socket().native_handle() << "] Failed to start connection, connections_count = " << m_sock_count); + conn->start(true, 1 < m_threads_count); conn->save_dbg_log(); }else { -- cgit v1.2.3