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