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:
parent
1702c34b64
commit
a9f81b729b
4 changed files with 12 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue