Browse Source

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.
QGC4.4
dogmaphobic 10 years ago
parent
commit
3fd9497c85
  1. 2
      src/comm/UDPLink.cc

2
src/comm/UDPLink.cc

@ -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()
{ {
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) {

Loading…
Cancel
Save