forked from qt-creator/qt-creator
QmlProfiling: Support both IPv4 and IPv6
Change-Id: Idb0ceb27eabff33da3db52b0b62077083e8893ba Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
@@ -122,7 +122,7 @@ QmlProfilerEngine::QmlProfilerEnginePrivate::createRunner(ProjectExplorer::RunCo
|
||||
ProjectExplorer::DeviceKitInformation::device(runConfiguration->target()->kit());
|
||||
QTC_ASSERT(device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE, return 0);
|
||||
QTcpServer server;
|
||||
if (!server.listen(QHostAddress(QLatin1String("127.0.0.1"))))
|
||||
if (!server.listen(QHostAddress::LocalHost) || !server.listen(QHostAddress::LocalHostIPv6))
|
||||
return 0;
|
||||
conf.port = server.serverPort();
|
||||
runner = new LocalQmlProfilerRunner(conf, parent);
|
||||
|
||||
Reference in New Issue
Block a user