mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Make client report a newer version number to the server than 2011-07-31 does and make the server enforce it
This commit is contained in:
parent
7244f09111
commit
bdf54908aa
4 changed files with 13 additions and 2 deletions
|
@ -2010,6 +2010,14 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
L"Your client is too old. Please upgrade.");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Uhh... this should actually be a warning but let's do it like this */
|
||||
if(net_proto_version < 2)
|
||||
{
|
||||
SendAccessDenied(m_con, peer_id,
|
||||
L"Your client is too old. Please upgrade.");
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
Set up player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue