forked from lthn/blockchain
p2p: fix for filtering old clients mechanism #128
This commit is contained in:
parent
609969799e
commit
adc08088aa
1 changed files with 9 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ namespace nodetool
|
|||
|
||||
if (!tools::check_remote_client_version(rsp.payload_data.client_version))
|
||||
{
|
||||
LOG_PRINT_CCONTEXT_L2("COMMAND_HANDSHAKE Failed, wrong client version: " << rsp.payload_data.client_version << ", closing connection.");
|
||||
LOG_ERROR_CCONTEXT("COMMAND_HANDSHAKE Failed, wrong client version: " << rsp.payload_data.client_version << ", closing connection.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1310,6 +1310,14 @@ namespace nodetool
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (!tools::check_remote_client_version(rsp.payload_data.client_version))
|
||||
{
|
||||
LOG_PRINT_CCONTEXT_L2("COMMAND_HANDSHAKE: wrong client version: " << rsp.payload_data.client_version << ", closing connection.");
|
||||
drop_connection(context);
|
||||
add_ip_fail(context.m_remote_ip);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(!handle_maintainers_entry(arg.maintrs_entry))
|
||||
{
|
||||
LOG_ERROR_CCONTEXT("COMMAND_HANDSHAKE Failed, wrong maintainers entry!, closing connection.");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue