Fix proxy support with Qt 5.9+
parent
dad6031bd6
commit
374bf79911
|
@ -241,6 +241,11 @@ int main(int argc, char * argv[])
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
QTcpSocket socket;
|
QTcpSocket socket;
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x050900
|
||||||
|
socket.setProxy(QNetworkProxy::NoProxy);
|
||||||
|
#endif
|
||||||
|
|
||||||
socket.bind(0, QTcpSocket::ShareAddress);
|
socket.bind(0, QTcpSocket::ShareAddress);
|
||||||
#else
|
#else
|
||||||
QUdpSocket socket;
|
QUdpSocket socket;
|
||||||
|
|
Loading…
Reference in New Issue