summaryrefslogtreecommitdiff
path: root/src/network/core/config.h
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-07-10 22:16:03 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-07-10 23:09:45 +0200
commite99134654b4609d37d03098cb34d6b692fead9da (patch)
tree990946625392b4018c0a4a797ac5e8d7fc319773 /src/network/core/config.h
parent3e4d3274517d6a5f3fede18e0e29eafcdc30d0c8 (diff)
downloadopenttd-e99134654b4609d37d03098cb34d6b692fead9da.tar.xz
Feature: allow setting (game) coordinator and content server connection strings using environment variables
OTTD_COORDINATOR_CS for the game coordinator defaults to coordinator.openttd.org:3976 OTTD_CONTENT_SERVER_CS for the content server defaults to content.openttd.org:3978 OTTD_CONTENT_MIRROR_CS for the content mirror server defaults to binaries.openttd.org:80
Diffstat (limited to 'src/network/core/config.h')
-rw-r--r--src/network/core/config.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/network/core/config.h b/src/network/core/config.h
index ab1c3082e..d64dec2d9 100644
--- a/src/network/core/config.h
+++ b/src/network/core/config.h
@@ -12,12 +12,10 @@
#ifndef NETWORK_CORE_CONFIG_H
#define NETWORK_CORE_CONFIG_H
-/** DNS hostname of the Game Coordinator server */
-static const char * const NETWORK_COORDINATOR_SERVER_HOST = "coordinator.openttd.org";
-/** DNS hostname of the content server */
-static const char * const NETWORK_CONTENT_SERVER_HOST = "content.openttd.org";
-/** DNS hostname of the HTTP-content mirror server */
-static const char * const NETWORK_CONTENT_MIRROR_HOST = "binaries.openttd.org";
+const char *NetworkCoordinatorConnectionString();
+const char *NetworkContentServerConnectionString();
+const char *NetworkContentMirrorConnectionString();
+
/** URL of the HTTP mirror system */
static const char * const NETWORK_CONTENT_MIRROR_URL = "/bananas";