Skip to content

Commit 46f7fe9

Browse files
committedOct 16, 2017
Fix strict_protocol_version_checking functionality after ee9a442
1 parent 90e7d42 commit 46f7fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/network/serverpackethandler.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
142142

143143
client->net_proto_version = net_proto_version;
144144

145-
if (g_settings->getBool("strict_protocol_version_checking") ||
145+
if ((g_settings->getBool("strict_protocol_version_checking") &&
146+
net_proto_version != LATEST_PROTOCOL_VERSION) ||
146147
net_proto_version < SERVER_PROTOCOL_VERSION_MIN ||
147148
net_proto_version > SERVER_PROTOCOL_VERSION_MAX) {
148149
actionstream << "Server: A mismatched client tried to connect from "

0 commit comments

Comments
 (0)
Please sign in to comment.