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.
parent e4dcf8fe
...@@ -32,6 +32,7 @@ This file is part of the QGROUNDCONTROL project ...@@ -32,6 +32,7 @@ This file is part of the QGROUNDCONTROL project
#include <QList> #include <QList>
#include <QDebug> #include <QDebug>
#include <QMutexLocker> #include <QMutexLocker>
#include <QNetworkProxy>
#include <iostream> #include <iostream>
#include "UDPLink.h" #include "UDPLink.h"
...@@ -222,6 +223,7 @@ bool UDPLink::_hardwareConnect() ...@@ -222,6 +223,7 @@ bool UDPLink::_hardwareConnect()
{ {
QHostAddress host = QHostAddress::Any; QHostAddress host = QHostAddress::Any;
_socket = new QUdpSocket(); _socket = new QUdpSocket();
_socket->setProxy(QNetworkProxy::NoProxy);
_connectState = _socket->bind(host, _config->localPort()); _connectState = _socket->bind(host, _config->localPort());
QObject::connect(_socket, SIGNAL(readyRead()), this, SLOT(readBytes())); QObject::connect(_socket, SIGNAL(readyRead()), this, SLOT(readBytes()));
if (_connectState) { 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