|
|
@ -645,11 +645,12 @@ int Application::exec(const QStringList ¶ms) |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DISABLE_GUI |
|
|
|
#ifdef DISABLE_GUI |
|
|
|
#ifndef DISABLE_WEBUI |
|
|
|
#ifndef DISABLE_WEBUI |
|
|
|
Preferences *const pref = Preferences::instance(); |
|
|
|
const Preferences *pref = Preferences::instance(); |
|
|
|
// Display some information to the user
|
|
|
|
|
|
|
|
|
|
|
|
const auto scheme = QString::fromLatin1(pref->isWebUiHttpsEnabled() ? "https" : "http"); |
|
|
|
|
|
|
|
const auto url = QString::fromLatin1("%1://localhost:%2\n").arg(scheme, QString::number(pref->getWebUiPort())); |
|
|
|
const QString mesg = QString::fromLatin1("\n******** %1 ********\n").arg(tr("Information")) |
|
|
|
const QString mesg = QString::fromLatin1("\n******** %1 ********\n").arg(tr("Information")) |
|
|
|
+ tr("To control qBittorrent, access the Web UI at %1") |
|
|
|
+ tr("To control qBittorrent, access the WebUI at: %1\n").arg(url); |
|
|
|
.arg(QString("http://localhost:") + QString::number(pref->getWebUiPort())) + '\n'; |
|
|
|
|
|
|
|
printf("%s", qUtf8Printable(mesg)); |
|
|
|
printf("%s", qUtf8Printable(mesg)); |
|
|
|
|
|
|
|
|
|
|
|
if (pref->getWebUIPassword() == "ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==") |
|
|
|
if (pref->getWebUIPassword() == "ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==") |
|
|
|