diff options
author | SmallJoker <mk939@ymail.com> | 2017-10-16 20:12:48 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-10-16 20:12:48 +0200 |
commit | 46f7fe91a2d404397115c3b970fa3b73f006519d (patch) | |
tree | 39917616f7d9e00f82dc901ee84c81f59c54ee72 /src/network/serverpackethandler.cpp | |
parent | 90e7d42375918636bf65fd6273675a576530778d (diff) | |
download | minetest-46f7fe91a2d404397115c3b970fa3b73f006519d.tar.gz minetest-46f7fe91a2d404397115c3b970fa3b73f006519d.tar.bz2 minetest-46f7fe91a2d404397115c3b970fa3b73f006519d.zip |
Fix strict_protocol_version_checking functionality after ee9a442
Diffstat (limited to 'src/network/serverpackethandler.cpp')
-rw-r--r-- | src/network/serverpackethandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 69c25b468..31bff7b5c 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -142,7 +142,8 @@ void Server::handleCommand_Init(NetworkPacket* pkt) client->net_proto_version = net_proto_version; - if (g_settings->getBool("strict_protocol_version_checking") || + if ((g_settings->getBool("strict_protocol_version_checking") && + net_proto_version != LATEST_PROTOCOL_VERSION) || net_proto_version < SERVER_PROTOCOL_VERSION_MIN || net_proto_version > SERVER_PROTOCOL_VERSION_MAX) { actionstream << "Server: A mismatched client tried to connect from " |