Skip to content

Commit

Permalink
restore previous logic wrt 5223 port
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jun 21, 2024
1 parent ac0569c commit c56d099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xmpp/xmpp-core/connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ void AdvancedConnector::connectToServer(const QString &server)

QStringList services = { XMPP_CLIENT_SRV };
if (d->opt_ssl == Never && d->opt_srvtls) { /* if ssl forced or should be probed */
d->port = XMPP_LEGACY_PORT;
services << XMPP_CLIENT_TLS_SRV;
}
if (d->opt_ssl != Never) {
d->port = XMPP_LEGACY_PORT;
}
s->connectToHost(services, XMPP_CLIENT_TRANSPORT, d->host, quint16(d->port));
}
}
Expand Down

0 comments on commit c56d099

Please sign in to comment.