mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fixed the password crash on Windows
This commit is contained in:
parent
bbead93c1a
commit
51cf464f74
5 changed files with 18 additions and 8 deletions
|
@ -1923,7 +1923,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
checkpwd = g_settings.get("default_password");
|
||||
}
|
||||
|
||||
if(password != checkpwd)
|
||||
if(password != checkpwd && checkpwd != "")
|
||||
{
|
||||
derr_server<<DTIME<<"Server: peer_id="<<peer_id
|
||||
<<": supplied invalid password for "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue