mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
Lobby: Fix broken sender check for connection data replies
iq.from() is empty on a freshly built outgoing IQ, so the sender
check in handleIq() was always skipped. Store iq.to() instead.
Fixes: 3991dd6c38
This commit is contained in:
1 parent
38c2e1a61e
commit
6fb9d7b86b
1 file changed
+1
-1
@@ -557,7 +557,7 @@ void XmppClient::SendIqGetConnectionData(const std::string& jid, const std::stri
|
||||
connectionData->m_IsLocalIP = localIP ? "1" : "0";
|
||||
gloox::IQ iq(gloox::IQ::Get, targetJID, m_Impl->m_client.getID());
|
||||
iq.addExtension(connectionData);
|
||||
m_Impl->m_connectionDataJid = iq.from().full();
|
||||
m_Impl->m_connectionDataJid = iq.to().full();
|
||||
m_Impl->m_connectionDataIqId = iq.id();
|
||||
DbgXMPP("SendIqGetConnectionData [" << tag_xml(iq) << "]");
|
||||
m_Impl->m_client.send(iq);
|
||||
|
||||
Reference in new issue
Block a user