Browse Source

Use host and port from config

nordsoft 3 years ago
parent
commit
83f4a5b561
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/CServerHandler.cpp

+ 1 - 1
client/CServerHandler.cpp

@@ -673,7 +673,7 @@ void CServerHandler::restoreLastSession()
 			myNames.push_back(name.String());
 		resetStateForLobby(StartInfo::LOAD_GAME, &myNames);
 		screenType = ESelectionScreen::loadGame;
-		justConnectToServer("127.0.0.1", 3030);
+		justConnectToServer(settings["server"]["server"].String(), settings["server"]["port"].Integer());
 	};
 	
 	auto cleanUpSession = []()