aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppOutgoingServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QXmppOutgoingServer.cpp')
-rw-r--r--src/QXmppOutgoingServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QXmppOutgoingServer.cpp b/src/QXmppOutgoingServer.cpp
index 30d366f0..a7c92a56 100644
--- a/src/QXmppOutgoingServer.cpp
+++ b/src/QXmppOutgoingServer.cpp
@@ -86,7 +86,7 @@ void QXmppOutgoingServer::connectToHost(const QString &domain)
if (!serviceInfo.records().isEmpty())
{
// take the first returned record
- host = serviceInfo.records().first().hostName();
+ host = serviceInfo.records().first().target();
port = serviceInfo.records().first().port();
} else {
// as a fallback, use domain as the host name