diff options
| author | Alexander Gavrilov | 2012-06-14 13:15:37 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-06-14 13:15:37 +0400 |
| commit | 9469f275590e2aca9ce13358847bf16a5791a00c (patch) | |
| tree | ae079afafe40338edacb3660549b5f3371356ab6 /library/RemoteServer.cpp | |
| parent | bbc1fb010ec16ea9260cfc6fe8cc122f79c2d0e6 (diff) | |
| download | dfhack-9469f275590e2aca9ce13358847bf16a5791a00c.tar.gz dfhack-9469f275590e2aca9ce13358847bf16a5791a00c.tar.bz2 dfhack-9469f275590e2aca9ce13358847bf16a5791a00c.tar.xz | |
Make the RPC server accept a range of client versions.
Otherwise it sort of defeats the purpose of using version handshake.
Diffstat (limited to 'library/RemoteServer.cpp')
| -rw-r--r-- | library/RemoteServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/RemoteServer.cpp b/library/RemoteServer.cpp index ed47890f..53428f2b 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; |
