Bind TCP server to localhost so that the firewall doesn't complain.

This commit is contained in:
alqualos 2014-07-24 17:03:12 +00:00
parent 4d6e38dd0c
commit 565ca76509

View file

@ -395,7 +395,7 @@ void TestQuaZip::saveFileBug()
void TestQuaZip::testSequential()
{
QTcpServer server;
QVERIFY(server.listen());
QVERIFY(server.listen(QHostAddress(QHostAddress::LocalHost)));
quint16 port = server.serverPort();
QTcpSocket socket;
socket.connectToHost(QHostAddress(QHostAddress::LocalHost), port);