diff --git a/src/xmpp/xmpp-core/connector.cpp b/src/xmpp/xmpp-core/connector.cpp index 2332b092..dc0712fc 100644 --- a/src/xmpp/xmpp-core/connector.cpp +++ b/src/xmpp/xmpp-core/connector.cpp @@ -328,10 +328,11 @@ void AdvancedConnector::connectToServer(const QString &server) return; } - QStringList services = { XMPP_CLIENT_SRV }; + QStringList services; if (!d->opt_directtls && d->opt_srvtls) { services << XMPP_CLIENT_TLS_SRV; } + services << XMPP_CLIENT_SRV; if (d->opt_directtls) { d->port = XMPP_LEGACY_PORT; }