Bind TCP server to localhost so that the firewall doesn't complain.
This commit is contained in:
parent
4d6e38dd0c
commit
565ca76509
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ void TestQuaZip::saveFileBug()
|
||||||
void TestQuaZip::testSequential()
|
void TestQuaZip::testSequential()
|
||||||
{
|
{
|
||||||
QTcpServer server;
|
QTcpServer server;
|
||||||
QVERIFY(server.listen());
|
QVERIFY(server.listen(QHostAddress(QHostAddress::LocalHost)));
|
||||||
quint16 port = server.serverPort();
|
quint16 port = server.serverPort();
|
||||||
QTcpSocket socket;
|
QTcpSocket socket;
|
||||||
socket.connectToHost(QHostAddress(QHostAddress::LocalHost), port);
|
socket.connectToHost(QHostAddress(QHostAddress::LocalHost), port);
|
||||||
|
|
Loading…
Reference in a new issue