Fix proxy support with Qt 5.9+

This commit is contained in:
Dave Page 2017-07-11 11:48:13 +01:00
parent dad6031bd6
commit 374bf79911

View File

@ -241,6 +241,11 @@ int main(int argc, char * argv[])
{
#if QT_VERSION >= 0x050000
QTcpSocket socket;
#if QT_VERSION >= 0x050900
socket.setProxy(QNetworkProxy::NoProxy);
#endif
socket.bind(0, QTcpSocket::ShareAddress);
#else
QUdpSocket socket;