mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user