1
0
Fork 0
forked from lthn/blockchain

p2p: block old clients (<2.x) on in and out conn + build version bump to 280

This commit is contained in:
sowle 2024-03-21 10:48:11 +01:00
parent 1790225997
commit 921b447b02
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
3 changed files with 4 additions and 8 deletions

View file

@ -684,12 +684,8 @@ std::string get_nix_version_display_string()
// got v_major, v_minor, v_revision
// allow 1.1.x and greater
if (v_major < 1)
return false;
if (v_major == 1 && v_minor < 1)
// allow 2.x and greater
if (v_major < 2)
return false;
return true;

View file

@ -525,7 +525,7 @@ namespace nodetool
if (!tools::check_remote_client_version(rsp.payload_data.client_version))
{
LOG_ERROR_CCONTEXT("COMMAND_HANDSHAKE Failed, wrong client version: " << rsp.payload_data.client_version << ", closing connection.");
LOG_PRINT_CC_YELLOW(context, "COMMAND_HANDSHAKE Failed, wrong client version: " << rsp.payload_data.client_version << ", closing connection.", LOG_LEVEL_1);
return;
}

View file

@ -8,6 +8,6 @@
#define PROJECT_REVISION "0"
#define PROJECT_VERSION PROJECT_MAJOR_VERSION "." PROJECT_MINOR_VERSION "." PROJECT_REVISION
#define PROJECT_VERSION_BUILD_NO 272
#define PROJECT_VERSION_BUILD_NO 280
#define PROJECT_VERSION_BUILD_NO_STR STRINGIFY_EXPAND(PROJECT_VERSION_BUILD_NO)
#define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO_STR "[" BUILD_COMMIT_ID "]"