summaryrefslogtreecommitdiffstats
path: root/src/sdk/main.cpp
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2014-11-24 15:26:21 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-24 16:52:17 +0100
commitb34f41a3bb527430f66f349bf612e6978a1c2338 (patch)
tree5ca5c2f506f7df8179738f67530b4ad12287d318 /src/sdk/main.cpp
parent44b12b11b2f86575f86b12c2e3172c4c038f4556 (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/sdk/main.cpp')
-rw-r--r--src/sdk/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sdk/main.cpp b/src/sdk/main.cpp
index 5b6019c74..a5565fe5a 100644
--- a/src/sdk/main.cpp
+++ b/src/sdk/main.cpp
@@ -137,7 +137,8 @@ int main(int argc, char *argv[])
QInstaller::RemoteServer *server = new QInstaller::RemoteServer;
QObject::connect(server, SIGNAL(destroyed()), &app, SLOT(quit()));
- server->init(port.toInt(), QHostAddress::LocalHost, QInstaller::Protocol::Mode::Release);
+ server->init(port.toInt(), QHostAddress(QLatin1String(QInstaller::Protocol
+ ::DefaultHostAddress)), QInstaller::Protocol::Mode::Release);
server->setAuthorizationKey(key);
server->start();
return app.exec();