From 9009b342315bc6d3c75580d5d8bd727711a331eb Mon Sep 17 00:00:00 2001 From: Sergei Ilinykh Date: Sat, 22 Jun 2024 14:41:32 +0300 Subject: [PATCH] put srv tls first in the list just to give it a little more priority --- src/xmpp/xmpp-core/connector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }