Commit 3fd9497c authored by dogmaphobic's avatar dogmaphobic

Forcing no proxy for UDP connections.

This came through google groups and as the change is right where I'd been working, I added it here to avoid collision.
No related merge requests found
......@@ -32,6 +32,7 @@ This file is part of the QGROUNDCONTROL project
#include <QList>
#include <QDebug>
#include <QMutexLocker>
#include <QNetworkProxy>
#include <iostream>
#include "UDPLink.h"
......@@ -222,6 +223,7 @@ bool UDPLink::_hardwareConnect()
{
QHostAddress host = QHostAddress::Any;
_socket = new QUdpSocket();
_socket->setProxy(QNetworkProxy::NoProxy);
_connectState = _socket->bind(host, _config->localPort());
QObject::connect(_socket, SIGNAL(readyRead()), this, SLOT(readBytes()));
if (_connectState) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment