From d6597400deb543fe8818034f08b0d5152b26ffd9 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Thu, 18 Apr 2013 22:47:46 +0200 Subject: [PATCH] Support IPv6 as well as IPv4. --- src/http/Server.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http/Server.cpp b/src/http/Server.cpp index e0fc04703..9104ba0b6 100644 --- a/src/http/Server.cpp +++ b/src/http/Server.cpp @@ -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()