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

Send real port to server list

This commit is contained in:
ShadowNinja 2015-01-21 14:32:12 -05:00 committed by Craig Robbins
parent 1702c34b64
commit a9f81b729b
4 changed files with 12 additions and 4 deletions

View file

@ -189,6 +189,7 @@ const std::string serializeJson(const std::vector<ServerListSpec> &serverlist)
#if USE_CURL
void sendAnnounce(const std::string &action,
const u16 port,
const std::vector<std::string> &clients_names,
const double uptime,
const u32 game_time,
@ -199,7 +200,7 @@ void sendAnnounce(const std::string &action,
{
Json::Value server;
server["action"] = action;
server["port"] = g_settings->getU16("port");
server["port"] = port;
if (g_settings->exists("server_address")) {
server["address"] = g_settings->get("server_address");
}