1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-13 05:41:17 +00:00

Support TLS 1.2+ only in the server

Closes #18122
This commit is contained in:
sledgehammer999 2023-02-01 02:26:59 +02:00
parent 1ea2fe5b8d
commit b2213ded6d
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

@ -101,6 +101,7 @@ Server::Server(IRequestHandler *requestHandler, QObject *parent)
setProxy(QNetworkProxy::NoProxy);
QSslConfiguration sslConf {QSslConfiguration::defaultConfiguration()};
sslConf.setProtocol(QSsl::TlsV1_2OrLater);
sslConf.setCiphers(safeCipherList());
QSslConfiguration::setDefaultConfiguration(sslConf);