added new commandline to specify internal/external port #'s to use when hosting:

--use-ports=61390,61390
This commit is contained in:
Mark Vejvoda
2011-11-23 21:36:49 +00:00
parent 53ad9d77c2
commit 1935f9314b
6 changed files with 60 additions and 67 deletions

View File

@@ -1866,7 +1866,7 @@ std::map<string,string> ServerInterface::publishToMasterserver() {
publishToServerInfo["activeSlots"] = intToStr(slotCountUsed);
publishToServerInfo["networkSlots"] = intToStr(slotCountHumans);
publishToServerInfo["connectedClients"] = intToStr(slotCountConnectedPlayers);
string externalport = config.getString("MasterServerExternalPort", "61357");
string externalport = config.getString("MasterServerExternalPort", intToStr(GameConstants::serverPort).c_str());
publishToServerInfo["externalconnectport"] = externalport;
publishToServerInfo["privacyPlease"] = intToStr(config.getBool("PrivacyPlease","false"));
publishToServerInfo["gameStatus"] = intToStr(game_status_in_progress);