From aa5bf48bd9d0af2901345e10540c12ab8da1a5c4 Mon Sep 17 00:00:00 2001 From: Sascha Heylik Date: Sat, 18 Aug 2012 15:51:42 +0200 Subject: [PATCH] Fix for being unable to connect to localhost rather than 127.0.0.1 (issue #210) --- src/guiMainMenu.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp index cdf1bc7d5..1ba036551 100644 --- a/src/guiMainMenu.cpp +++ b/src/guiMainMenu.cpp @@ -704,7 +704,12 @@ void GUIMainMenu::readInput(MainMenuData *dst) { gui::IGUIElement *e = getElementFromId(GUI_ID_ADDRESS_INPUT); if(e != NULL) - dst->address = e->getText(); + 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);