1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fixed problem of server always receiving an empty password from the client

This commit is contained in:
Perttu Ahola 2011-07-31 15:32:45 +03:00
parent bb77b1c0af
commit e0b8e66540
3 changed files with 12 additions and 4 deletions

View file

@ -1583,6 +1583,8 @@ int main(int argc, char *argv[])
password = translatePassword(playername, menudata.password);
//dstream<<"Main: password hash: '"<<password<<"'"<<std::endl;
address = wide_to_narrow(menudata.address);
int newport = stoi(wide_to_narrow(menudata.port));
if(newport != 0)