Support IPv6 as well as IPv4.

This commit is contained in:
Francois Ferrand 2013-04-18 22:47:46 +02:00
parent af394ff65c
commit d6597400de

View File

@ -61,7 +61,10 @@ void Server::start()
{
if (m_started)
return;
m_started = m_httpServer->listen(QHostAddress::LocalHost, 19455);
static const int PORT = 19455;
m_started = m_httpServer->listen(QHostAddress::LocalHost, PORT)
|| m_httpServer->listen(QHostAddress::LocalHostIPv6, PORT);
}
void Server::stop()