mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
[SSL] Print warning only if something changed
This commit is contained in:
parent
ba87fc9e78
commit
106a35d242
1 changed files with 8 additions and 5 deletions
|
@ -418,11 +418,14 @@ void Account::slotHandleSslErrors(QNetworkReply *reply, QList<QSslError> errors)
|
|||
if (!guard)
|
||||
return;
|
||||
|
||||
QSslSocket::addDefaultCaCertificates(approvedCerts);
|
||||
addApprovedCerts(approvedCerts);
|
||||
emit wantsAccountSaved(this);
|
||||
// all ssl certs are known and accepted. We can ignore the problems right away.
|
||||
qCInfo(lcAccount) << out << "Certs are known and trusted! This is not an actual error.";
|
||||
if (!approvedCerts.isEmpty()) {
|
||||
QSslSocket::addDefaultCaCertificates(approvedCerts);
|
||||
addApprovedCerts(approvedCerts);
|
||||
emit wantsAccountSaved(this);
|
||||
|
||||
// all ssl certs are known and accepted. We can ignore the problems right away.
|
||||
qCInfo(lcAccount) << out << "Certs are known and trusted! This is not an actual error.";
|
||||
}
|
||||
|
||||
// Warning: Do *not* use ignoreSslErrors() (without args) here:
|
||||
// it permanently ignores all SSL errors for this host, even
|
||||
|
|
Loading…
Reference in a new issue