Skip to content

Commit 137007b

Browse files
committed
Fixing the proxy type error
1 parent 5875621 commit 137007b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deflect/Server.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "NetworkProtocol.h"
4545
#include "ServerWorker.h"
4646

47+
#include <QNetworkProxyFactory>
4748
#include <QThread>
4849
#include <stdexcept>
4950

@@ -60,9 +61,12 @@ class Server::Impl
6061
Server::Server(const int port)
6162
: _impl(new Impl)
6263
{
64+
setProxy(QNetworkProxy::NoProxy);
6365
if (!listen(QHostAddress::Any, port))
6466
{
65-
const auto err = QString("could not listen on port: %1").arg(port);
67+
const auto err = QString("could not listen on port: %1. QTcpServer: %2")
68+
.arg(port)
69+
.arg(QTcpServer::errorString());
6670
throw std::runtime_error(err.toStdString());
6771
}
6872

0 commit comments

Comments
 (0)