diff options
author | kh <karsten.heimrich@theqtcompany.com> | 2014-11-24 15:26:21 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2014-11-24 16:52:17 +0100 |
commit | b34f41a3bb527430f66f349bf612e6978a1c2338 (patch) | |
tree | 5ca5c2f506f7df8179738f67530b4ad12287d318 /src/libs/installer/packagemanagercore_p.cpp | |
parent | 44b12b11b2f86575f86b12c2e3172c4c038f4556 (diff) |
Use written localhost address, adapt code.
Use the default address throughout the whole code. Instead of
relying on the QHostAddress::SpecialAddress enum, use the full
qualified and more descriptive address of localhost.
Change-Id: I64b3459245682532f84306703e29ac276d4e468d
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.cpp')
-rw-r--r-- | src/libs/installer/packagemanagercore_p.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagercore_p.cpp b/src/libs/installer/packagemanagercore_p.cpp index e65e3aea7..5944e4100 100644 --- a/src/libs/installer/packagemanagercore_p.cpp +++ b/src/libs/installer/packagemanagercore_p.cpp @@ -245,7 +245,8 @@ PackageManagerCorePrivate::PackageManagerCorePrivate(PackageManagerCore *core, q // Creates and initializes a remote client, makes us get admin rights for QFile, QSettings // and QProcess operations. Init needs to called before we can get the real authorization key. int port = 30000 + qrand() % 1000; - RemoteClient::instance().init(port, QHostAddress::LocalHost, Protocol::Mode::Release); + RemoteClient::instance().init(port, + QHostAddress(QLatin1String(Protocol::DefaultHostAddress)), Protocol::Mode::Release); RemoteClient::instance().setStartServerCommand(QCoreApplication::applicationFilePath(), QStringList() << QLatin1String("--startserver") << QString::fromLatin1("%1,%2") .arg(port) |