Ignore self signed ssl certs for connections to localhost
This commit is contained in:
parent
203e444073
commit
63e5f90632
@ -177,8 +177,12 @@ void NymeaConnection::onSslErrors(const QList<QSslError> &errors)
|
||||
certificateFingerprint.append(digest.mid(i,1).toHex().toUpper());
|
||||
}
|
||||
|
||||
// Ignore self signed certs for connections to localhost
|
||||
if (QHostAddress(transport->url().host()) == QHostAddress::LocalHost || QHostAddress(transport->url().host()) == QHostAddress::LocalHostIPv6) {
|
||||
ignoredErrors.append(error);
|
||||
|
||||
// Check old style fingerprint storage
|
||||
if (storedFingerPrint == certificateFingerprint) {
|
||||
} else if (storedFingerPrint == certificateFingerprint) {
|
||||
qDebug() << "This fingerprint is known to us.";
|
||||
ignoredErrors.append(error);
|
||||
|
||||
|
||||
@ -168,7 +168,6 @@ Page {
|
||||
ColorIcon {
|
||||
height: app.iconSize / 2
|
||||
width: height
|
||||
visible: infoPane.connectedState !== null && infoPane.connectedState.value === false
|
||||
color: "white"
|
||||
name: "../images/system-update.svg"
|
||||
RotationAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; running: engine.systemController.updateRunning }
|
||||
|
||||
Reference in New Issue
Block a user