Skip to content

Commit

Permalink
put srv tls first in the list just to give it a little more priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jun 22, 2024
1 parent 53d2308 commit 9009b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xmpp/xmpp-core/connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9009b34

Please sign in to comment.