Skip to content

Commit

Permalink
Support TLS 1.2+ only in the server
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgehammer999 committed Feb 19, 2023
1 parent 632d33b commit abd1ab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/http/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit abd1ab5

Please sign in to comment.