Add aggressive restrictions to pre-handshake p2p buffer limit

This commit is contained in:
Lee Clagett 2020-12-29 19:58:53 -05:00
parent a1eca8ca7e
commit 61b6e4cc67
10 changed files with 40 additions and 11 deletions

View file

@ -178,6 +178,7 @@ namespace
{
using base_type = epee::net_utils::connection_context_base;
static_cast<base_type&>(context_) = base_type{random_generator(), {}, is_incoming, false};
context_.m_state = cryptonote::cryptonote_connection_context::state_normal;
handler_.after_init_connection();
}