Add back the default stun servers list to user config

Now we can remove stun server in c8d9383d6a4bd3059be08bb1a72bbb0e9c74f996
This commit is contained in:
Benau 2020-05-07 15:23:12 +08:00
parent c8d9383d6a
commit c77a695f35

View File

@ -786,13 +786,29 @@ namespace UserConfigParams
PARAM_DEFAULT(StringToUIntUserConfigParam("stun-servers-ipv4",
"The stun servers that will be used to know the public address "
"(ipv4 only) with port", {{ "stun-server", "address", "ping" }},
{ }));
{
{ "stunv4.1.supertuxkart.net:3478", 0u },
{ "stunv4.2.supertuxkart.net:19302", 0u },
{ "stunv4.3.supertuxkart.net:19302", 0u },
{ "stunv4.4.supertuxkart.net:19302", 0u },
{ "stunv4.5.supertuxkart.net:19302", 0u },
{ "stunv4.6.supertuxkart.net:19302", 0u }
}
));
PARAM_PREFIX StringToUIntUserConfigParam m_stun_servers
PARAM_DEFAULT(StringToUIntUserConfigParam("stun-servers-ipv6",
"The stun servers that will be used to know the public address "
"(including ipv6) with port", {{ "stun-server", "address", "ping" }},
{ }));
{
{ "stun.stunprotocol.org:3478", 0u },
{ "stun.l.google.com:19302", 0u },
{ "stun1.l.google.com:19302", 0u },
{ "stun2.l.google.com:19302", 0u },
{ "stun3.l.google.com:19302", 0u },
{ "stun4.l.google.com:19302", 0u }
}
));
PARAM_PREFIX GroupUserConfigParam m_network_group
PARAM_DEFAULT(GroupUserConfigParam("Network", "Network Settings"));