From 9469f275590e2aca9ce13358847bf16a5791a00c Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 14 Jun 2012 13:15:37 +0400 Subject: [PATCH] Make the RPC server accept a range of client versions. Otherwise it sort of defeats the purpose of using version handshake. --- library/RemoteServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/RemoteServer.cpp b/library/RemoteServer.cpp index ed47890f7..53428f2bd 100644 --- a/library/RemoteServer.cpp +++ b/library/RemoteServer.cpp @@ -220,7 +220,7 @@ void ServerConnection::threadFn() } 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; return;