diff --git a/app/adsb/adsbvehiclemanager.cpp b/app/adsb/adsbvehiclemanager.cpp index 38d1b4708..5ab17dd70 100644 --- a/app/adsb/adsbvehiclemanager.cpp +++ b/app/adsb/adsbvehiclemanager.cpp @@ -221,6 +221,7 @@ void ADSBInternet::requestData(void) { _adsb_enable = _settings.value("adsb_enable").toBool(); _adsb_show_internet_data = _settings.value("adsb_show_internet_data").toBool(); max_distance = _settings.value("adsb_radius").toInt(); + QObject::connect(m_manager, SIGNAL(sslErrors(QNetworkReply*,QList)), this, SLOT(dirty_onSslError(QNetworkReply*, QList))); QString distance_string = QString::number(max_distance/1852); // convert meters to NM for api @@ -421,6 +422,13 @@ void ADSBInternet::processReply(QNetworkReply *reply) { reply->deleteLater(); } +void ADSBInternet::dirty_onSslError(QNetworkReply *reply, QList errors) +{ + // Consti10: Dang openssl - just ignore all SSL errors ! + //qDebug()<<"got some ssl errors"; + reply->ignoreSslErrors(); +} + ADSBSdr::ADSBSdr() : ADSBapi() { diff --git a/app/adsb/adsbvehiclemanager.h b/app/adsb/adsbvehiclemanager.h index f01a8165a..f186b9c13 100644 --- a/app/adsb/adsbvehiclemanager.h +++ b/app/adsb/adsbvehiclemanager.h @@ -81,8 +81,8 @@ class ADSBInternet: public ADSBapi { private slots: void processReply(QNetworkReply *reply) override; + void dirty_onSslError(QNetworkReply* reply, QList errors); void requestData() override; - private: bool _adsb_show_internet_data; };