* Get the connection string for the STUN server from the environment variable OTTD_STUN_CS, * or when it has not been set a hard coded default DNS hostname of the production server. * @return The STUN server's connection string. */
| 31 | * @return The STUN server's connection string. |
| 32 | */ |
| 33 | std::string_view NetworkStunConnectionString() |
| 34 | { |
| 35 | return GetEnv("OTTD_STUN_CS").value_or("stun.openttd.org"); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Get the connection string for the content server from the environment variable OTTD_CONTENT_SERVER_CS, |