feat(master): the server list names each server's port and machine

Master keeps the address and port auth, chat, the dashboard and the UGC
server report when they connect and sends them, with its own and every
world's, after the list's world states. A server's machine is the address
master sees its connection come from; loopback and master's external_ip are
master's machine. Servers can report another port than their RakNet one; the
UGC server reports its web port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 02:13:41 -05:00
parent 93aa88dd86
commit a93f5f810b
7 changed files with 108 additions and 2 deletions

View File

@@ -745,6 +745,8 @@ int main(int argc, char** argv) {
// The master starts it again when this link drops
g_Server = new dServer(masterIP, Setting<uint32_t>("net_port", 2012), 0, 16, false, false, Game::logger, masterIP, masterPort,
ServiceType::UGC, Game::config, &Game::lastSignal, masterPassword);
// Master (and the dashboard's Network page) show the port clients fetch files from
g_Server->SetAdvertisedPort(Setting<uint32_t>("port", 2008));
Game::server = g_Server;
UgcBricks::BrickLibrary library(res, 0, ClientReader());