MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkCoordinatorConnectionString

Function NetworkCoordinatorConnectionString

src/network/core/config.cpp:23–26  ·  view source on GitHub ↗

* Get the connection string for the game coordinator from the environment variable OTTD_COORDINATOR_CS, * or when it has not been set a hard coded default DNS hostname of the production server. * @return The game coordinator's connection string. */

Source from the content-addressed store, hash-verified

21 * @return The game coordinator's connection string.
22 */
23std::string_view NetworkCoordinatorConnectionString()
24{
25 return GetEnv("OTTD_COORDINATOR_CS").value_or("coordinator.openttd.org");
26}
27
28/**
29 * Get the connection string for the STUN server from the environment variable OTTD_STUN_CS,

Callers 1

ConnectMethod · 0.85

Calls 1

GetEnvFunction · 0.85

Tested by

no test coverage detected