diff options
| author | Alexander Akulich <akulichalexander@gmail.com> | 2021-01-02 18:03:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-02 16:03:40 +0100 |
| commit | 6ebba92c582e4b2ef6d2ff939680a9ede1821308 (patch) | |
| tree | 46904b0e1881b0f16fd7699b8eaf88e622421d12 /src/server/QXmppOutgoingServer.cpp | |
| parent | efd103c28406c4dd3a78ce4d7849e86ea7e96e9a (diff) | |
server: Add 'to' and 'from' attributes to dialback init stream header (#324)
The attributes are mandatory (see RFC 6120 paragraphs 8.1.1.2 and 8.1.2.2).
Diffstat (limited to 'src/server/QXmppOutgoingServer.cpp')
| -rw-r--r-- | src/server/QXmppOutgoingServer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/QXmppOutgoingServer.cpp b/src/server/QXmppOutgoingServer.cpp index 600f834d..e5aed70d 100644 --- a/src/server/QXmppOutgoingServer.cpp +++ b/src/server/QXmppOutgoingServer.cpp @@ -148,11 +148,14 @@ void QXmppOutgoingServer::handleStart() QXmppStream::handleStart(); QString data = QString("<?xml version='1.0'?><stream:stream" - " xmlns='%1' xmlns:db='%2' xmlns:stream='%3' version='1.0'>") + " xmlns='%1' xmlns:db='%2' xmlns:stream='%3' version='1.0'" + " from='%4' to='%5'>") .arg( ns_server, ns_server_dialback, - ns_stream); + ns_stream, + d->localDomain, + d->remoteDomain); sendData(data.toUtf8()); } |
