aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppOutgoingClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QXmppOutgoingClient.cpp')
-rw-r--r--src/QXmppOutgoingClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QXmppOutgoingClient.cpp b/src/QXmppOutgoingClient.cpp
index b3336e36..ed51eb9c 100644
--- a/src/QXmppOutgoingClient.cpp
+++ b/src/QXmppOutgoingClient.cpp
@@ -156,7 +156,7 @@ void QXmppOutgoingClient::connectToHost()
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