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

Function NetworkContentServerConnectionString

src/network/core/config.cpp:43–46  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

41 * @return The content server's connection string.
42 */
43std::string_view NetworkContentServerConnectionString()
44{
45 return GetEnv("OTTD_CONTENT_SERVER_CS").value_or("content.openttd.org");
46}
47
48/**
49 * Get the URI string for the content mirror from the environment variable OTTD_CONTENT_MIRROR_URI,

Callers 1

ConnectMethod · 0.85

Calls 1

GetEnvFunction · 0.85

Tested by

no test coverage detected