Skip to content

Commit

Permalink
Enable TLS SRV only when tls account settings are either auto or enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jun 20, 2024
1 parent 680633b commit 1f37adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iris
2 changes: 1 addition & 1 deletion src/psiaccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ void PsiAccount::login()
connect(d->tlsHandler, &QCATLSHandler::tlsHandshaken, this, &PsiAccount::tls_handshaken);
}
d->conn->setProxy(p);

d->conn->setOptTlsSrv(d->acc.ssl == UserAccount::SSL_Auto || d->acc.ssl == UserAccount::SSL_Yes);
if (useHost) {
d->conn->setOptHostPort(host, quint16(port));
d->conn->setOptSSL(d->acc.ssl == UserAccount::SSL_Legacy);
Expand Down

0 comments on commit 1f37adf

Please sign in to comment.