Rename stun list to avoid conflicts with old config
This commit is contained in:
@@ -716,9 +716,9 @@ namespace UserConfigParams
|
||||
PARAM_DEFAULT( IntUserConfigParam(12, "server_max_players",
|
||||
"Maximum number of players on the server.") );
|
||||
|
||||
PARAM_PREFIX StringListUserConfigParam m_stun_servers
|
||||
PARAM_DEFAULT( StringListUserConfigParam("Stun_servers", "The stun servers"
|
||||
" that will be used to know the public address.",
|
||||
PARAM_PREFIX StringListUserConfigParam m_stun_servers_list
|
||||
PARAM_DEFAULT( StringListUserConfigParam("Stun_servers_list",
|
||||
"The stun servers that will be used to know the public address.",
|
||||
10,
|
||||
"stun.cope.es",
|
||||
"stun.12connect.com",
|
||||
|
||||
@@ -385,7 +385,8 @@ void STKHost::shutdown()
|
||||
*/
|
||||
void STKHost::setPublicAddress()
|
||||
{
|
||||
std::vector<std::string> untried_server = UserConfigParams::m_stun_servers;
|
||||
std::vector<std::string> untried_server =
|
||||
UserConfigParams::m_stun_servers_list;
|
||||
// Generate random list of stun servers
|
||||
std::random_device rd;
|
||||
std::mt19937 g(rd());
|
||||
|
||||
Reference in New Issue
Block a user