diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-05 10:47:01 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-07-20 19:57:23 +0200 |
commit | fa1e27994dd1284f6fefbe08c47a5c4145ccf00d (patch) | |
tree | bbe8fab946192e5667ef176673590d2fae60e969 /src/table/settings/network_settings.ini | |
parent | 8a361340037d6908c9a4df10aefdb58860a22b80 (diff) | |
download | openttd-fa1e27994dd1284f6fefbe08c47a5c4145ccf00d.tar.xz |
Feature: allow the use of TURN to connect client and server together
TURN is a last resort, used only if all other methods failed.
TURN is a relay approach to connect client and server together, where
openttd.org (by default) is the middleman.
It is very unlikely either the client or server cannot connect to
the STUN server, as they are both already connected to the Game
Coordinator. But in the odd case it does fail, estabilishing the
connection fails without any further possibility to recover.
Diffstat (limited to 'src/table/settings/network_settings.ini')
-rw-r--r-- | src/table/settings/network_settings.ini | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/table/settings/network_settings.ini b/src/table/settings/network_settings.ini index 552f58823..86f8aafc8 100644 --- a/src/table/settings/network_settings.ini +++ b/src/table/settings/network_settings.ini @@ -10,6 +10,7 @@ static void UpdateClientConfigValues(); static std::initializer_list<const char*> _server_game_type{"local", "public", "invite-only"}; +static std::initializer_list<const char*> _use_relay_service{"never", "ask", "allow"}; static const SettingVariant _network_settings_table[] = { [post-amble] @@ -261,3 +262,16 @@ var = network.no_http_content_downloads flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC def = false cat = SC_EXPERT + +[SDTC_OMANY] +var = network.use_relay_service +type = SLE_UINT8 +flags = SF_GUI_DROPDOWN | SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC +def = URS_ASK +min = URS_NO +max = URS_ALLOW +full = _use_relay_service +str = STR_CONFIG_SETTING_USE_RELAY_SERVICE +strhelp = STR_CONFIG_SETTING_USE_RELAY_SERVICE_HELPTEXT +strval = STR_CONFIG_SETTING_USE_RELAY_SERVICE_NEVER +cat = SC_BASIC |