mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-20 19:45:22 +02:00
Fix for being unable to connect to localhost rather than 127.0.0.1 (issue #210)
This commit is contained in:
@@ -704,8 +704,13 @@ void GUIMainMenu::readInput(MainMenuData *dst)
|
||||
{
|
||||
gui::IGUIElement *e = getElementFromId(GUI_ID_ADDRESS_INPUT);
|
||||
if(e != NULL)
|
||||
if (e->getText() == std::wstring(L"localhost")) {
|
||||
dst->address = std::wstring(L"127.0.0.1");
|
||||
}
|
||||
else {
|
||||
dst->address = e->getText();
|
||||
}
|
||||
}
|
||||
{
|
||||
gui::IGUIElement *e = getElementFromId(GUI_ID_PORT_INPUT);
|
||||
if(e != NULL)
|
||||
|
Reference in New Issue
Block a user