We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5875621 commit 137007bCopy full SHA for 137007b
deflect/Server.cpp
@@ -44,6 +44,7 @@
44
#include "NetworkProtocol.h"
45
#include "ServerWorker.h"
46
47
+#include <QNetworkProxyFactory>
48
#include <QThread>
49
#include <stdexcept>
50
@@ -60,9 +61,12 @@ class Server::Impl
60
61
Server::Server(const int port)
62
: _impl(new Impl)
63
{
64
+ setProxy(QNetworkProxy::NoProxy);
65
if (!listen(QHostAddress::Any, port))
66
- 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());
70
throw std::runtime_error(err.toStdString());
71
}
72
0 commit comments