diff --git a/src/QtLocationPlugin/QGCTileCacheWorker.cpp b/src/QtLocationPlugin/QGCTileCacheWorker.cpp index 6c6709e6122a3e31e08ab8f6c556e5dce1c693bb..6ec60c71724f5bf9614332ac34753ccbe21c7160 100644 --- a/src/QtLocationPlugin/QGCTileCacheWorker.cpp +++ b/src/QtLocationPlugin/QGCTileCacheWorker.cpp @@ -1071,6 +1071,9 @@ QGCCacheWorker::_lookupReady(QHostInfo info) _hostLookupID = 0; if(info.error() == QHostInfo::NoError && info.addresses().size()) { QTcpSocket socket; + QNetworkProxy tempProxy; + tempProxy.setType(QNetworkProxy::DefaultProxy); + socket.setProxy(tempProxy); socket.connectToHost(info.addresses().first(), 80); if (socket.waitForConnected(2000)) { qCDebug(QGCTileCacheLog) << "Yes Internet Access"; diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index d41ce35243f3fd05050f91137d831f74cb2c9fab..7fcde9f1cdc99340d9a093b61bb155a6f62ba3e4 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -188,7 +188,9 @@ VideoReceiver::_timeout() // found to be working, only then we actually start the stream. QUrl url(_uri); _socket = new QTcpSocket; - _socket->setProxy(QNetworkProxy::NoProxy); + QNetworkProxy tempProxy; + tempProxy.setType(QNetworkProxy::DefaultProxy); + _socket->setProxy(tempProxy); connect(_socket, static_cast(&QTcpSocket::error), this, &VideoReceiver::_socketError); connect(_socket, &QTcpSocket::connected, this, &VideoReceiver::_connected); _socket->connectToHost(url.host(), url.port());