mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix strict_protocol_version_checking functionality after ee9a442
				
					
				
			This commit is contained in:
		@@ -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 "
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user