diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/QXmppOutgoingClient.cpp | 2 | ||||
| -rw-r--r-- | src/QXmppOutgoingServer.cpp | 2 |
2 files changed, 2 insertions, 2 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 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 |
