Rename stun list to avoid conflicts with old config

This commit is contained in:
Benau
2018-03-21 10:48:37 +08:00
parent 4379244f3e
commit e63124ea3e
2 changed files with 5 additions and 4 deletions

View File

@@ -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",

View File

@@ -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());