Make the RPC server accept a range of client versions.

Otherwise it sort of defeats the purpose of using version handshake.
develop
Alexander Gavrilov 2012-06-14 13:15:37 +04:00
parent bbc1fb010e
commit 9469f27559
1 changed files with 1 additions and 1 deletions

@ -220,7 +220,7 @@ void ServerConnection::threadFn()
} }
if (memcmp(header.magic, RPCHandshakeHeader::REQUEST_MAGIC, sizeof(header.magic)) || if (memcmp(header.magic, RPCHandshakeHeader::REQUEST_MAGIC, sizeof(header.magic)) ||
header.version != 1) header.version < 1 || header.version > 255)
{ {
out << "In RPC server: invalid handshake header." << endl; out << "In RPC server: invalid handshake header." << endl;
return; return;