Skip to content

Commit c56d099

Browse files
committed
restore previous logic wrt 5223 port
1 parent ac0569c commit c56d099

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xmpp/xmpp-core/connector.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,11 @@ void AdvancedConnector::connectToServer(const QString &server)
347347

348348
QStringList services = { XMPP_CLIENT_SRV };
349349
if (d->opt_ssl == Never && d->opt_srvtls) { /* if ssl forced or should be probed */
350-
d->port = XMPP_LEGACY_PORT;
351350
services << XMPP_CLIENT_TLS_SRV;
352351
}
352+
if (d->opt_ssl != Never) {
353+
d->port = XMPP_LEGACY_PORT;
354+
}
353355
s->connectToHost(services, XMPP_CLIENT_TRANSPORT, d->host, quint16(d->port));
354356
}
355357
}

0 commit comments

Comments
 (0)