mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:29:50 +00:00
Remove CNetClient::SetupServerData
It has to be called before `SetupConnection` is called. Now the server-data is setup during the constructor. When connecting using the lobby, the data isn't known at construction time. Then it is done at the start of `TryToConnectWithSTUN`.
This commit is contained in:
@@ -862,8 +862,7 @@ bool XmppClient::handleIq(const gloox::IQ& iq)
|
||||
return true;
|
||||
}
|
||||
|
||||
g_NetClient->SetupServerData(cd->m_Ip, stoi(cd->m_Port));
|
||||
g_NetClient->TryToConnectWithSTUN(iq.from().full(), !cd->m_IsLocalIP.empty());
|
||||
g_NetClient->TryToConnectWithSTUN(cd->m_Ip, stoi(cd->m_Port), iq.from().full(), !cd->m_IsLocalIP.empty());
|
||||
}
|
||||
if (gq)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user