2008-05-17 13:23:37 +00:00
|
|
|
/*
|
2017-10-14 16:27:21 +03:00
|
|
|
* Bittorrent Client using Qt and libtorrent.
|
|
|
|
* Copyright (C) 2018 Vladimir Golovnev <glassez@yandex.ru>
|
|
|
|
* Copyright (C) 2006-2012 Christophe Dumez <chris@qbittorrent.org>
|
|
|
|
* Copyright (C) 2006-2012 Ishan Arora <ishan@qbittorrent.org>
|
2008-05-17 13:23:37 +00:00
|
|
|
*
|
2009-04-05 18:48:45 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2008-05-17 13:23:37 +00:00
|
|
|
*
|
2009-04-05 18:48:45 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2008-05-17 13:23:37 +00:00
|
|
|
*
|
2009-04-05 18:48:45 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* In addition, as a special exception, the copyright holders give permission to
|
|
|
|
* link this program with the OpenSSL project's "OpenSSL" library (or with
|
|
|
|
* modified versions of it that use the same license as the "OpenSSL" library),
|
|
|
|
* and distribute the linked executables. You must obey the GNU General Public
|
|
|
|
* License in all respects for all of the code used other than "OpenSSL". If you
|
|
|
|
* modify file(s), you may extend this exception to your version of the file(s),
|
|
|
|
* but you are not obligated to do so. If you do not wish to do so, delete this
|
|
|
|
* exception statement from your version.
|
2008-05-17 13:23:37 +00:00
|
|
|
*/
|
|
|
|
|
2017-10-14 16:27:21 +03:00
|
|
|
#include "appcontroller.h"
|
2016-05-01 11:05:52 +03:00
|
|
|
|
|
|
|
#include <QCoreApplication>
|
2017-10-14 16:27:21 +03:00
|
|
|
#include <QDebug>
|
|
|
|
#include <QJsonDocument>
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QRegularExpression>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QTranslator>
|
|
|
|
|
2016-05-01 11:05:52 +03:00
|
|
|
#include "base/bittorrent/session.h"
|
2018-02-16 18:31:48 +00:00
|
|
|
#include "base/global.h"
|
2016-06-03 17:03:17 +03:00
|
|
|
#include "base/net/portforwarder.h"
|
2016-05-01 11:05:52 +03:00
|
|
|
#include "base/net/proxyconfigurationmanager.h"
|
2016-02-09 11:56:48 +03:00
|
|
|
#include "base/preferences.h"
|
2017-10-14 16:27:21 +03:00
|
|
|
#include "base/rss/rss_autodownloader.h"
|
|
|
|
#include "base/rss/rss_session.h"
|
2016-02-09 11:56:48 +03:00
|
|
|
#include "base/scanfoldersmodel.h"
|
2018-10-17 03:23:43 -04:00
|
|
|
#include "base/torrentfileguard.h"
|
2016-02-09 11:56:48 +03:00
|
|
|
#include "base/utils/fs.h"
|
2019-01-02 12:34:03 -05:00
|
|
|
#include "base/utils/misc.h"
|
2017-09-27 13:55:20 -04:00
|
|
|
#include "base/utils/net.h"
|
2018-11-21 15:15:51 +08:00
|
|
|
#include "base/utils/password.h"
|
2017-10-14 16:27:21 +03:00
|
|
|
#include "../webapplication.h"
|
|
|
|
|
|
|
|
void AppController::webapiVersionAction()
|
|
|
|
{
|
|
|
|
setResult(static_cast<QString>(API_VERSION));
|
|
|
|
}
|
2008-05-17 13:23:37 +00:00
|
|
|
|
2017-10-14 16:27:21 +03:00
|
|
|
void AppController::versionAction()
|
2012-05-26 22:58:53 +03:00
|
|
|
{
|
2017-10-14 16:27:21 +03:00
|
|
|
setResult(QBT_VERSION);
|
2012-05-26 22:58:53 +03:00
|
|
|
}
|
2010-11-22 21:55:32 +00:00
|
|
|
|
2019-01-02 12:34:03 -05:00
|
|
|
void AppController::buildInfoAction()
|
|
|
|
{
|
|
|
|
const QJsonObject versions = {
|
|
|
|
{"qt", QT_VERSION_STR},
|
|
|
|
{"libtorrent", Utils::Misc::libtorrentVersionString()},
|
|
|
|
{"boost", Utils::Misc::boostVersionString()},
|
|
|
|
{"openssl", Utils::Misc::opensslVersionString()},
|
2019-06-10 19:14:59 +02:00
|
|
|
{"zlib", Utils::Misc::zlibVersionString()},
|
2019-01-02 12:34:03 -05:00
|
|
|
{"bitness", (QT_POINTER_SIZE * 8)}
|
|
|
|
};
|
|
|
|
setResult(versions);
|
|
|
|
}
|
|
|
|
|
2017-10-14 16:27:21 +03:00
|
|
|
void AppController::shutdownAction()
|
2008-05-17 13:23:37 +00:00
|
|
|
{
|
2017-10-14 16:27:21 +03:00
|
|
|
qDebug() << "Shutdown request from Web UI";
|
|
|
|
|
|
|
|
// Special case handling for shutdown, we
|
|
|
|
// need to reply to the Web UI before
|
|
|
|
// actually shutting down.
|
|
|
|
QTimer::singleShot(100, qApp, &QCoreApplication::quit);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AppController::preferencesAction()
|
|
|
|
{
|
|
|
|
const Preferences *const pref = Preferences::instance();
|
2019-02-21 23:31:43 +02:00
|
|
|
const auto *session = BitTorrent::Session::instance();
|
2015-06-22 14:02:09 +02:00
|
|
|
QVariantMap data;
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Downloads
|
2018-10-17 03:23:43 -04:00
|
|
|
// When adding a torrent
|
|
|
|
data["create_subfolder_enabled"] = session->isCreateTorrentSubfolder();
|
|
|
|
data["start_paused_enabled"] = session->isAddTorrentPaused();
|
|
|
|
data["auto_delete_mode"] = static_cast<int>(TorrentFileGuard::autoDeleteMode());
|
2018-10-15 22:48:57 -04:00
|
|
|
data["preallocate_all"] = session->isPreallocationEnabled();
|
|
|
|
data["incomplete_files_ext"] = session->isAppendExtensionEnabled();
|
|
|
|
// Saving Management
|
2018-10-24 22:15:40 -04:00
|
|
|
data["auto_tmm_enabled"] = !session->isAutoTMMDisabledByDefault();
|
|
|
|
data["torrent_changed_tmm_enabled"] = !session->isDisableAutoTMMWhenCategoryChanged();
|
|
|
|
data["save_path_changed_tmm_enabled"] = !session->isDisableAutoTMMWhenDefaultSavePathChanged();
|
|
|
|
data["category_changed_tmm_enabled"] = !session->isDisableAutoTMMWhenCategorySavePathChanged();
|
2016-02-09 11:56:48 +03:00
|
|
|
data["save_path"] = Utils::Fs::toNativePath(session->defaultSavePath());
|
|
|
|
data["temp_path_enabled"] = session->isTempPathEnabled();
|
|
|
|
data["temp_path"] = Utils::Fs::toNativePath(session->tempPath());
|
2018-10-15 22:48:57 -04:00
|
|
|
data["export_dir"] = Utils::Fs::toNativePath(session->torrentExportDirectory());
|
|
|
|
data["export_dir_fin"] = Utils::Fs::toNativePath(session->finishedTorrentExportDirectory());
|
|
|
|
// Automatically add torrents from
|
2018-02-14 19:51:36 +00:00
|
|
|
const QVariantHash dirs = pref->getScanDirs();
|
2016-01-01 14:38:32 -04:30
|
|
|
QVariantMap nativeDirs;
|
2019-05-17 11:24:01 +08:00
|
|
|
for (auto i = dirs.cbegin(); i != dirs.cend(); ++i) {
|
2016-01-01 14:38:32 -04:30
|
|
|
if (i.value().type() == QVariant::Int)
|
|
|
|
nativeDirs.insert(Utils::Fs::toNativePath(i.key()), i.value().toInt());
|
|
|
|
else
|
|
|
|
nativeDirs.insert(Utils::Fs::toNativePath(i.key()), Utils::Fs::toNativePath(i.value().toString()));
|
2015-06-22 14:02:09 +02:00
|
|
|
}
|
2016-01-01 14:38:32 -04:30
|
|
|
data["scan_dirs"] = nativeDirs;
|
2015-07-08 09:06:41 +02:00
|
|
|
// Email notification upon download completion
|
2015-06-22 14:02:09 +02:00
|
|
|
data["mail_notification_enabled"] = pref->isMailNotificationEnabled();
|
2018-10-21 23:14:39 -04:00
|
|
|
data["mail_notification_sender"] = pref->getMailNotificationSender();
|
2015-06-22 14:02:09 +02:00
|
|
|
data["mail_notification_email"] = pref->getMailNotificationEmail();
|
|
|
|
data["mail_notification_smtp"] = pref->getMailNotificationSMTP();
|
|
|
|
data["mail_notification_ssl_enabled"] = pref->getMailNotificationSMTPSSL();
|
|
|
|
data["mail_notification_auth_enabled"] = pref->getMailNotificationSMTPAuth();
|
|
|
|
data["mail_notification_username"] = pref->getMailNotificationSMTPUsername();
|
|
|
|
data["mail_notification_password"] = pref->getMailNotificationSMTPPassword();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Run an external program on torrent completion
|
2015-06-22 14:02:09 +02:00
|
|
|
data["autorun_enabled"] = pref->isAutoRunEnabled();
|
|
|
|
data["autorun_program"] = Utils::Fs::toNativePath(pref->getAutoRunProgram());
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Connection
|
2015-07-08 09:06:41 +02:00
|
|
|
// Listening Port
|
2016-05-01 11:05:52 +03:00
|
|
|
data["listen_port"] = session->port();
|
2016-06-03 17:03:17 +03:00
|
|
|
data["upnp"] = Net::PortForwarder::instance()->isEnabled();
|
2016-05-01 11:05:52 +03:00
|
|
|
data["random_port"] = session->useRandomPort();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Connections Limits
|
2016-05-01 11:05:52 +03:00
|
|
|
data["max_connec"] = session->maxConnections();
|
|
|
|
data["max_connec_per_torrent"] = session->maxConnectionsPerTorrent();
|
|
|
|
data["max_uploads"] = session->maxUploads();
|
|
|
|
data["max_uploads_per_torrent"] = session->maxUploadsPerTorrent();
|
|
|
|
|
2015-07-08 09:06:41 +02:00
|
|
|
// Proxy Server
|
2019-02-21 23:31:43 +02:00
|
|
|
const auto *proxyManager = Net::ProxyConfigurationManager::instance();
|
2016-05-01 11:05:52 +03:00
|
|
|
Net::ProxyConfiguration proxyConf = proxyManager->proxyConfiguration();
|
|
|
|
data["proxy_type"] = static_cast<int>(proxyConf.type);
|
|
|
|
data["proxy_ip"] = proxyConf.ip;
|
|
|
|
data["proxy_port"] = proxyConf.port;
|
|
|
|
data["proxy_auth_enabled"] = proxyManager->isAuthenticationRequired(); // deprecated
|
|
|
|
data["proxy_username"] = proxyConf.username;
|
|
|
|
data["proxy_password"] = proxyConf.password;
|
|
|
|
|
|
|
|
data["proxy_peer_connections"] = session->isProxyPeerConnectionsEnabled();
|
|
|
|
data["force_proxy"] = session->isForceProxyEnabled();
|
2018-02-12 00:56:05 -05:00
|
|
|
data["proxy_torrents_only"] = proxyManager->isProxyOnlyForTorrents();
|
2016-05-01 11:05:52 +03:00
|
|
|
|
2015-07-08 09:06:41 +02:00
|
|
|
// IP Filtering
|
2016-10-29 19:14:27 +03:00
|
|
|
data["ip_filter_enabled"] = session->isIPFilteringEnabled();
|
2016-05-01 11:05:52 +03:00
|
|
|
data["ip_filter_path"] = Utils::Fs::toNativePath(session->IPFilterFile());
|
|
|
|
data["ip_filter_trackers"] = session->isTrackerFilteringEnabled();
|
2017-03-06 19:40:34 +07:00
|
|
|
data["banned_IPs"] = session->bannedIPs().join("\n");
|
2015-07-08 09:06:41 +02:00
|
|
|
|
|
|
|
// Speed
|
|
|
|
// Global Rate Limits
|
2016-05-01 11:05:52 +03:00
|
|
|
data["dl_limit"] = session->globalDownloadSpeedLimit();
|
|
|
|
data["up_limit"] = session->globalUploadSpeedLimit();
|
2018-10-21 13:46:48 +08:00
|
|
|
data["alt_dl_limit"] = session->altGlobalDownloadSpeedLimit();
|
|
|
|
data["alt_up_limit"] = session->altGlobalUploadSpeedLimit();
|
2017-09-14 04:29:54 +08:00
|
|
|
data["bittorrent_protocol"] = static_cast<int>(session->btProtocol());
|
2016-05-01 11:05:52 +03:00
|
|
|
data["limit_utp_rate"] = session->isUTPRateLimited();
|
|
|
|
data["limit_tcp_overhead"] = session->includeOverheadInLimits();
|
2018-10-21 23:19:35 -04:00
|
|
|
data["limit_lan_peers"] = !session->ignoreLimitsOnLAN();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Scheduling
|
2016-05-01 11:05:52 +03:00
|
|
|
data["scheduler_enabled"] = session->isBandwidthSchedulerEnabled();
|
2015-06-22 14:02:09 +02:00
|
|
|
const QTime start_time = pref->getSchedulerStartTime();
|
|
|
|
data["schedule_from_hour"] = start_time.hour();
|
|
|
|
data["schedule_from_min"] = start_time.minute();
|
|
|
|
const QTime end_time = pref->getSchedulerEndTime();
|
|
|
|
data["schedule_to_hour"] = end_time.hour();
|
|
|
|
data["schedule_to_min"] = end_time.minute();
|
|
|
|
data["scheduler_days"] = pref->getSchedulerDays();
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Bittorrent
|
2015-07-08 09:06:41 +02:00
|
|
|
// Privacy
|
2016-05-01 11:05:52 +03:00
|
|
|
data["dht"] = session->isDHTEnabled();
|
|
|
|
data["pex"] = session->isPeXEnabled();
|
|
|
|
data["lsd"] = session->isLSDEnabled();
|
|
|
|
data["encryption"] = session->encryption();
|
|
|
|
data["anonymous_mode"] = session->isAnonymousModeEnabled();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Torrent Queueing
|
2016-05-01 11:05:52 +03:00
|
|
|
data["queueing_enabled"] = session->isQueueingSystemEnabled();
|
|
|
|
data["max_active_downloads"] = session->maxActiveDownloads();
|
|
|
|
data["max_active_torrents"] = session->maxActiveTorrents();
|
|
|
|
data["max_active_uploads"] = session->maxActiveUploads();
|
|
|
|
data["dont_count_slow_torrents"] = session->ignoreSlowTorrentsForQueueing();
|
2018-10-22 00:03:01 -04:00
|
|
|
data["slow_torrent_dl_rate_threshold"] = session->downloadRateForSlowTorrents();
|
|
|
|
data["slow_torrent_ul_rate_threshold"] = session->uploadRateForSlowTorrents();
|
|
|
|
data["slow_torrent_inactive_timer"] = session->slowTorrentsInactivityTimer();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Share Ratio Limiting
|
2016-05-01 11:05:52 +03:00
|
|
|
data["max_ratio_enabled"] = (session->globalMaxRatio() >= 0.);
|
|
|
|
data["max_ratio"] = session->globalMaxRatio();
|
2016-02-07 13:01:50 -04:30
|
|
|
data["max_seeding_time_enabled"] = (session->globalMaxSeedingMinutes() >= 0.);
|
|
|
|
data["max_seeding_time"] = session->globalMaxSeedingMinutes();
|
2016-05-01 11:05:52 +03:00
|
|
|
data["max_ratio_act"] = session->maxRatioAction();
|
2016-05-07 15:17:01 +02:00
|
|
|
// Add trackers
|
2016-05-01 11:05:52 +03:00
|
|
|
data["add_trackers_enabled"] = session->isAddTrackersEnabled();
|
|
|
|
data["add_trackers"] = session->additionalTrackers();
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Web UI
|
2015-07-08 09:06:41 +02:00
|
|
|
// Language
|
|
|
|
data["locale"] = pref->getLocale();
|
|
|
|
// HTTP Server
|
2017-07-02 18:23:10 +08:00
|
|
|
data["web_ui_domain_list"] = pref->getServerDomains();
|
2017-10-12 02:28:31 +00:00
|
|
|
data["web_ui_address"] = pref->getWebUiAddress();
|
2015-06-22 14:02:09 +02:00
|
|
|
data["web_ui_port"] = pref->getWebUiPort();
|
2015-07-09 10:42:45 +02:00
|
|
|
data["web_ui_upnp"] = pref->useUPnPForWebUIPort();
|
2015-06-22 14:02:09 +02:00
|
|
|
data["use_https"] = pref->isWebUiHttpsEnabled();
|
2019-01-17 09:42:01 +08:00
|
|
|
data["web_ui_https_cert_path"] = pref->getWebUIHttpsCertificatePath();
|
|
|
|
data["web_ui_https_key_path"] = pref->getWebUIHttpsKeyPath();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Authentication
|
|
|
|
data["web_ui_username"] = pref->getWebUiUsername();
|
|
|
|
data["bypass_local_auth"] = !pref->isWebUiLocalAuthEnabled();
|
2017-09-27 13:55:20 -04:00
|
|
|
data["bypass_auth_subnet_whitelist_enabled"] = pref->isWebUiAuthSubnetWhitelistEnabled();
|
|
|
|
QStringList authSubnetWhitelistStringList;
|
2018-11-27 22:15:04 +02:00
|
|
|
for (const Utils::Net::Subnet &subnet : asConst(pref->getWebUiAuthSubnetWhitelist()))
|
2017-09-27 13:55:20 -04:00
|
|
|
authSubnetWhitelistStringList << Utils::Net::subnetToString(subnet);
|
|
|
|
data["bypass_auth_subnet_whitelist"] = authSubnetWhitelistStringList.join("\n");
|
2019-06-13 22:43:34 +08:00
|
|
|
data["web_ui_session_timeout"] = pref->getWebUISessionTimeout();
|
2018-10-21 23:37:53 -04:00
|
|
|
// Use alternative Web UI
|
|
|
|
data["alternative_webui_enabled"] = pref->isAltWebUiEnabled();
|
|
|
|
data["alternative_webui_path"] = pref->getWebUiRootFolder();
|
2018-05-21 23:33:44 +08:00
|
|
|
// Security
|
|
|
|
data["web_ui_clickjacking_protection_enabled"] = pref->isWebUiClickjackingProtectionEnabled();
|
2018-05-22 00:43:33 +08:00
|
|
|
data["web_ui_csrf_protection_enabled"] = pref->isWebUiCSRFProtectionEnabled();
|
2018-11-16 13:41:27 +08:00
|
|
|
data["web_ui_host_header_validation_enabled"] = pref->isWebUIHostHeaderValidationEnabled();
|
2015-07-08 09:06:41 +02:00
|
|
|
// Update my dynamic domain name
|
2015-06-22 14:02:09 +02:00
|
|
|
data["dyndns_enabled"] = pref->isDynDNSEnabled();
|
|
|
|
data["dyndns_service"] = pref->getDynDNSService();
|
|
|
|
data["dyndns_username"] = pref->getDynDNSUsername();
|
|
|
|
data["dyndns_password"] = pref->getDynDNSPassword();
|
|
|
|
data["dyndns_domain"] = pref->getDynDomainName();
|
2012-05-26 22:58:53 +03:00
|
|
|
|
2017-10-14 16:27:21 +03:00
|
|
|
// RSS settings
|
2018-05-15 16:03:14 +03:00
|
|
|
data["rss_refresh_interval"] = RSS::Session::instance()->refreshInterval();
|
|
|
|
data["rss_max_articles_per_feed"] = RSS::Session::instance()->maxArticlesPerFeed();
|
|
|
|
data["rss_processing_enabled"] = RSS::Session::instance()->isProcessingEnabled();
|
|
|
|
data["rss_auto_downloading_enabled"] = RSS::AutoDownloader::instance()->isProcessingEnabled();
|
2017-10-14 16:27:21 +03:00
|
|
|
|
|
|
|
setResult(QJsonObject::fromVariantMap(data));
|
2008-05-17 13:23:37 +00:00
|
|
|
}
|
|
|
|
|
2017-10-14 16:27:21 +03:00
|
|
|
void AppController::setPreferencesAction()
|
2012-05-26 22:58:53 +03:00
|
|
|
{
|
2017-10-14 16:27:21 +03:00
|
|
|
checkParams({"json"});
|
|
|
|
|
|
|
|
Preferences *const pref = Preferences::instance();
|
2016-02-09 11:56:48 +03:00
|
|
|
auto session = BitTorrent::Session::instance();
|
2017-10-14 16:27:21 +03:00
|
|
|
const QVariantMap m = QJsonDocument::fromJson(params()["json"].toUtf8()).toVariant().toMap();
|
2019-06-09 10:33:24 +08:00
|
|
|
|
2018-10-15 22:48:57 -04:00
|
|
|
QVariantMap::ConstIterator it;
|
2019-06-09 10:33:24 +08:00
|
|
|
const auto hasKey = [&it, &m](const char *key) -> bool
|
|
|
|
{
|
|
|
|
it = m.find(QLatin1String(key));
|
|
|
|
return (it != m.constEnd());
|
|
|
|
};
|
2010-09-25 12:42:19 +00:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Downloads
|
2018-10-17 03:23:43 -04:00
|
|
|
// When adding a torrent
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("create_subfolder_enabled"))
|
2018-10-17 03:23:43 -04:00
|
|
|
session->setCreateTorrentSubfolder(it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("start_paused_enabled"))
|
2018-10-17 03:23:43 -04:00
|
|
|
session->setAddTorrentPaused(it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("auto_delete_mode"))
|
2018-10-17 03:23:43 -04:00
|
|
|
TorrentFileGuard::setAutoDeleteMode(static_cast<TorrentFileGuard::AutoDeleteMode>(it.value().toInt()));
|
|
|
|
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("preallocate_all"))
|
2018-10-15 22:48:57 -04:00
|
|
|
session->setPreallocationEnabled(it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("incomplete_files_ext"))
|
2018-10-15 22:48:57 -04:00
|
|
|
session->setAppendExtensionEnabled(it.value().toBool());
|
|
|
|
|
|
|
|
// Saving Management
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("auto_tmm_enabled"))
|
2018-10-24 22:15:40 -04:00
|
|
|
session->setAutoTMMDisabledByDefault(!it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("torrent_changed_tmm_enabled"))
|
2018-10-24 22:15:40 -04:00
|
|
|
session->setDisableAutoTMMWhenCategoryChanged(!it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("save_path_changed_tmm_enabled"))
|
2018-10-24 22:15:40 -04:00
|
|
|
session->setDisableAutoTMMWhenDefaultSavePathChanged(!it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("category_changed_tmm_enabled"))
|
2018-10-24 22:15:40 -04:00
|
|
|
session->setDisableAutoTMMWhenCategorySavePathChanged(!it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("save_path"))
|
|
|
|
session->setDefaultSavePath(it.value().toString());
|
|
|
|
if (hasKey("temp_path_enabled"))
|
|
|
|
session->setTempPathEnabled(it.value().toBool());
|
|
|
|
if (hasKey("temp_path"))
|
|
|
|
session->setTempPath(it.value().toString());
|
|
|
|
if (hasKey("export_dir"))
|
2018-10-15 22:48:57 -04:00
|
|
|
session->setTorrentExportDirectory(it.value().toString());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("export_dir_fin"))
|
2018-10-15 22:48:57 -04:00
|
|
|
session->setFinishedTorrentExportDirectory(it.value().toString());
|
|
|
|
// Automatically add torrents from
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("scan_dirs")) {
|
|
|
|
const QVariantMap nativeDirs = it.value().toMap();
|
2016-01-01 14:38:32 -04:30
|
|
|
QVariantHash oldScanDirs = pref->getScanDirs();
|
|
|
|
QVariantHash scanDirs;
|
|
|
|
ScanFoldersModel *model = ScanFoldersModel::instance();
|
2019-05-17 11:24:01 +08:00
|
|
|
for (auto i = nativeDirs.cbegin(); i != nativeDirs.cend(); ++i) {
|
2019-06-16 20:14:15 +03:00
|
|
|
QString folder = Utils::Fs::toUniformPath(i.key());
|
2016-01-01 14:38:32 -04:30
|
|
|
int downloadType;
|
|
|
|
QString downloadPath;
|
|
|
|
ScanFoldersModel::PathStatus ec;
|
|
|
|
if (i.value().type() == QVariant::String) {
|
|
|
|
downloadType = ScanFoldersModel::CUSTOM_LOCATION;
|
2019-06-16 20:14:15 +03:00
|
|
|
downloadPath = Utils::Fs::toUniformPath(i.value().toString());
|
2015-06-22 14:02:09 +02:00
|
|
|
}
|
2016-01-01 14:38:32 -04:30
|
|
|
else {
|
|
|
|
downloadType = i.value().toInt();
|
|
|
|
downloadPath = (downloadType == ScanFoldersModel::DEFAULT_LOCATION) ? "Default folder" : "Watch folder";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!oldScanDirs.contains(folder))
|
|
|
|
ec = model->addPath(folder, static_cast<ScanFoldersModel::PathType>(downloadType), downloadPath);
|
|
|
|
else
|
|
|
|
ec = model->updatePath(folder, static_cast<ScanFoldersModel::PathType>(downloadType), downloadPath);
|
|
|
|
|
|
|
|
if (ec == ScanFoldersModel::Ok) {
|
|
|
|
scanDirs.insert(folder, (downloadType == ScanFoldersModel::CUSTOM_LOCATION) ? QVariant(downloadPath) : QVariant(downloadType));
|
2017-08-13 13:56:03 +03:00
|
|
|
qDebug("New watched folder: %s to %s", qUtf8Printable(folder), qUtf8Printable(downloadPath));
|
2016-01-01 14:38:32 -04:30
|
|
|
}
|
|
|
|
else {
|
2017-08-13 13:56:03 +03:00
|
|
|
qDebug("Watched folder %s failed with error %d", qUtf8Printable(folder), ec);
|
2015-06-22 14:02:09 +02:00
|
|
|
}
|
2010-03-22 18:50:04 +00:00
|
|
|
}
|
2016-01-01 14:38:32 -04:30
|
|
|
|
|
|
|
// Update deleted folders
|
2018-03-06 14:50:10 +00:00
|
|
|
for (auto i = oldScanDirs.cbegin(); i != oldScanDirs.cend(); ++i) {
|
2019-02-14 14:29:57 +02:00
|
|
|
const QString &folder = i.key();
|
2016-01-01 14:38:32 -04:30
|
|
|
if (!scanDirs.contains(folder)) {
|
|
|
|
model->removePath(folder);
|
2017-08-13 13:56:03 +03:00
|
|
|
qDebug("Removed watched folder %s", qUtf8Printable(folder));
|
2016-01-01 14:38:32 -04:30
|
|
|
}
|
|
|
|
}
|
|
|
|
pref->setScanDirs(scanDirs);
|
|
|
|
}
|
2015-07-08 09:06:41 +02:00
|
|
|
// Email notification upon download completion
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("mail_notification_enabled"))
|
|
|
|
pref->setMailNotificationEnabled(it.value().toBool());
|
|
|
|
if (hasKey("mail_notification_sender"))
|
2018-10-21 23:14:39 -04:00
|
|
|
pref->setMailNotificationSender(it.value().toString());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("mail_notification_email"))
|
|
|
|
pref->setMailNotificationEmail(it.value().toString());
|
|
|
|
if (hasKey("mail_notification_smtp"))
|
|
|
|
pref->setMailNotificationSMTP(it.value().toString());
|
|
|
|
if (hasKey("mail_notification_ssl_enabled"))
|
|
|
|
pref->setMailNotificationSMTPSSL(it.value().toBool());
|
|
|
|
if (hasKey("mail_notification_auth_enabled"))
|
|
|
|
pref->setMailNotificationSMTPAuth(it.value().toBool());
|
|
|
|
if (hasKey("mail_notification_username"))
|
|
|
|
pref->setMailNotificationSMTPUsername(it.value().toString());
|
|
|
|
if (hasKey("mail_notification_password"))
|
|
|
|
pref->setMailNotificationSMTPPassword(it.value().toString());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Run an external program on torrent completion
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("autorun_enabled"))
|
|
|
|
pref->setAutoRunEnabled(it.value().toBool());
|
|
|
|
if (hasKey("autorun_program"))
|
|
|
|
pref->setAutoRunProgram(it.value().toString());
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Connection
|
2015-07-08 09:06:41 +02:00
|
|
|
// Listening Port
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("listen_port"))
|
|
|
|
session->setPort(it.value().toInt());
|
|
|
|
if (hasKey("upnp"))
|
|
|
|
Net::PortForwarder::instance()->setEnabled(it.value().toBool());
|
|
|
|
if (hasKey("random_port"))
|
|
|
|
session->setUseRandomPort(it.value().toBool());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Connections Limits
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("max_connec"))
|
|
|
|
session->setMaxConnections(it.value().toInt());
|
|
|
|
if (hasKey("max_connec_per_torrent"))
|
|
|
|
session->setMaxConnectionsPerTorrent(it.value().toInt());
|
|
|
|
if (hasKey("max_uploads"))
|
|
|
|
session->setMaxUploads(it.value().toInt());
|
|
|
|
if (hasKey("max_uploads_per_torrent"))
|
|
|
|
session->setMaxUploadsPerTorrent(it.value().toInt());
|
2016-05-01 11:05:52 +03:00
|
|
|
|
2015-07-08 09:06:41 +02:00
|
|
|
// Proxy Server
|
2016-05-01 11:05:52 +03:00
|
|
|
auto proxyManager = Net::ProxyConfigurationManager::instance();
|
|
|
|
Net::ProxyConfiguration proxyConf = proxyManager->proxyConfiguration();
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("proxy_type"))
|
|
|
|
proxyConf.type = static_cast<Net::ProxyType>(it.value().toInt());
|
|
|
|
if (hasKey("proxy_ip"))
|
|
|
|
proxyConf.ip = it.value().toString();
|
|
|
|
if (hasKey("proxy_port"))
|
|
|
|
proxyConf.port = it.value().toUInt();
|
|
|
|
if (hasKey("proxy_username"))
|
|
|
|
proxyConf.username = it.value().toString();
|
|
|
|
if (hasKey("proxy_password"))
|
|
|
|
proxyConf.password = it.value().toString();
|
2016-05-01 11:05:52 +03:00
|
|
|
proxyManager->setProxyConfiguration(proxyConf);
|
|
|
|
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("proxy_peer_connections"))
|
|
|
|
session->setProxyPeerConnectionsEnabled(it.value().toBool());
|
|
|
|
if (hasKey("force_proxy"))
|
|
|
|
session->setForceProxyEnabled(it.value().toBool());
|
|
|
|
if (hasKey("proxy_torrents_only"))
|
|
|
|
proxyManager->setProxyOnlyForTorrents(it.value().toBool());
|
2016-05-01 11:05:52 +03:00
|
|
|
|
2015-07-08 09:06:41 +02:00
|
|
|
// IP Filtering
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("ip_filter_enabled"))
|
|
|
|
session->setIPFilteringEnabled(it.value().toBool());
|
|
|
|
if (hasKey("ip_filter_path"))
|
|
|
|
session->setIPFilterFile(it.value().toString());
|
|
|
|
if (hasKey("ip_filter_trackers"))
|
|
|
|
session->setTrackerFilteringEnabled(it.value().toBool());
|
|
|
|
if (hasKey("banned_IPs"))
|
|
|
|
session->setBannedIPs(it.value().toString().split('\n'));
|
2015-07-08 09:06:41 +02:00
|
|
|
|
|
|
|
// Speed
|
|
|
|
// Global Rate Limits
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("dl_limit"))
|
|
|
|
session->setGlobalDownloadSpeedLimit(it.value().toInt());
|
|
|
|
if (hasKey("up_limit"))
|
|
|
|
session->setGlobalUploadSpeedLimit(it.value().toInt());
|
|
|
|
if (hasKey("alt_dl_limit"))
|
|
|
|
session->setAltGlobalDownloadSpeedLimit(it.value().toInt());
|
|
|
|
if (hasKey("alt_up_limit"))
|
|
|
|
session->setAltGlobalUploadSpeedLimit(it.value().toInt());
|
|
|
|
if (hasKey("bittorrent_protocol"))
|
|
|
|
session->setBTProtocol(static_cast<BitTorrent::BTProtocol>(it.value().toInt()));
|
|
|
|
if (hasKey("limit_utp_rate"))
|
|
|
|
session->setUTPRateLimited(it.value().toBool());
|
|
|
|
if (hasKey("limit_tcp_overhead"))
|
|
|
|
session->setIncludeOverheadInLimits(it.value().toBool());
|
|
|
|
if (hasKey("limit_lan_peers"))
|
2018-10-21 23:19:35 -04:00
|
|
|
session->setIgnoreLimitsOnLAN(!it.value().toBool());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Scheduling
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("scheduler_enabled"))
|
|
|
|
session->setBandwidthSchedulerEnabled(it.value().toBool());
|
2016-05-01 11:05:52 +03:00
|
|
|
if (m.contains("schedule_from_hour") && m.contains("schedule_from_min"))
|
|
|
|
pref->setSchedulerStartTime(QTime(m["schedule_from_hour"].toInt(), m["schedule_from_min"].toInt()));
|
|
|
|
if (m.contains("schedule_to_hour") && m.contains("schedule_to_min"))
|
|
|
|
pref->setSchedulerEndTime(QTime(m["schedule_to_hour"].toInt(), m["schedule_to_min"].toInt()));
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("scheduler_days"))
|
|
|
|
pref->setSchedulerDays(SchedulerDays(it.value().toInt()));
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Bittorrent
|
2015-07-08 09:06:41 +02:00
|
|
|
// Privacy
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("dht"))
|
|
|
|
session->setDHTEnabled(it.value().toBool());
|
|
|
|
if (hasKey("pex"))
|
|
|
|
session->setPeXEnabled(it.value().toBool());
|
|
|
|
if (hasKey("lsd"))
|
|
|
|
session->setLSDEnabled(it.value().toBool());
|
|
|
|
if (hasKey("encryption"))
|
|
|
|
session->setEncryption(it.value().toInt());
|
|
|
|
if (hasKey("anonymous_mode"))
|
|
|
|
session->setAnonymousModeEnabled(it.value().toBool());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Torrent Queueing
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("queueing_enabled"))
|
|
|
|
session->setQueueingSystemEnabled(it.value().toBool());
|
|
|
|
if (hasKey("max_active_downloads"))
|
|
|
|
session->setMaxActiveDownloads(it.value().toInt());
|
|
|
|
if (hasKey("max_active_torrents"))
|
|
|
|
session->setMaxActiveTorrents(it.value().toInt());
|
|
|
|
if (hasKey("max_active_uploads"))
|
|
|
|
session->setMaxActiveUploads(it.value().toInt());
|
|
|
|
if (hasKey("dont_count_slow_torrents"))
|
|
|
|
session->setIgnoreSlowTorrentsForQueueing(it.value().toBool());
|
|
|
|
if (hasKey("slow_torrent_dl_rate_threshold"))
|
2018-10-22 00:03:01 -04:00
|
|
|
session->setDownloadRateForSlowTorrents(it.value().toInt());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("slow_torrent_ul_rate_threshold"))
|
2018-10-22 00:03:01 -04:00
|
|
|
session->setUploadRateForSlowTorrents(it.value().toInt());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("slow_torrent_inactive_timer"))
|
2018-10-22 00:03:01 -04:00
|
|
|
session->setSlowTorrentsInactivityTimer(it.value().toInt());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Share Ratio Limiting
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("max_ratio_enabled")) {
|
|
|
|
if (it.value().toBool())
|
2018-04-09 18:51:39 +03:00
|
|
|
session->setGlobalMaxRatio(m["max_ratio"].toReal());
|
|
|
|
else
|
|
|
|
session->setGlobalMaxRatio(-1);
|
|
|
|
}
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("max_seeding_time_enabled")) {
|
|
|
|
if (it.value().toBool())
|
2018-04-09 18:51:39 +03:00
|
|
|
session->setGlobalMaxSeedingMinutes(m["max_seeding_time"].toInt());
|
|
|
|
else
|
|
|
|
session->setGlobalMaxSeedingMinutes(-1);
|
|
|
|
}
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("max_ratio_act"))
|
|
|
|
session->setMaxRatioAction(static_cast<MaxRatioAction>(it.value().toInt()));
|
2016-05-07 15:17:01 +02:00
|
|
|
// Add trackers
|
2016-05-01 11:05:52 +03:00
|
|
|
session->setAddTrackersEnabled(m["add_trackers_enabled"].toBool());
|
|
|
|
session->setAdditionalTrackers(m["add_trackers"].toString());
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Web UI
|
2015-07-08 09:06:41 +02:00
|
|
|
// Language
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("locale")) {
|
|
|
|
QString locale = it.value().toString();
|
2015-07-08 09:06:41 +02:00
|
|
|
if (pref->getLocale() != locale) {
|
2019-02-13 17:12:02 +02:00
|
|
|
auto *translator = new QTranslator;
|
2017-11-21 16:07:48 +08:00
|
|
|
if (translator->load(QLatin1String(":/lang/qbittorrent_") + locale)) {
|
2017-08-13 13:56:03 +03:00
|
|
|
qDebug("%s locale recognized, using translation.", qUtf8Printable(locale));
|
2019-02-13 17:12:02 +02:00
|
|
|
}
|
|
|
|
else {
|
2017-08-13 13:56:03 +03:00
|
|
|
qDebug("%s locale unrecognized, using default (en).", qUtf8Printable(locale));
|
2015-07-08 09:06:41 +02:00
|
|
|
}
|
|
|
|
qApp->installTranslator(translator);
|
|
|
|
|
|
|
|
pref->setLocale(locale);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// HTTP Server
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("web_ui_domain_list"))
|
|
|
|
pref->setServerDomains(it.value().toString());
|
|
|
|
if (hasKey("web_ui_address"))
|
|
|
|
pref->setWebUiAddress(it.value().toString());
|
|
|
|
if (hasKey("web_ui_port"))
|
|
|
|
pref->setWebUiPort(it.value().toUInt());
|
|
|
|
if (hasKey("web_ui_upnp"))
|
|
|
|
pref->setUPnPForWebUIPort(it.value().toBool());
|
|
|
|
if (hasKey("use_https"))
|
|
|
|
pref->setWebUiHttpsEnabled(it.value().toBool());
|
|
|
|
if (hasKey("web_ui_https_cert_path"))
|
2019-01-17 09:42:01 +08:00
|
|
|
pref->setWebUIHttpsCertificatePath(it.value().toString());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("web_ui_https_key_path"))
|
2019-01-17 09:42:01 +08:00
|
|
|
pref->setWebUIHttpsKeyPath(it.value().toString());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Authentication
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("web_ui_username"))
|
|
|
|
pref->setWebUiUsername(it.value().toString());
|
|
|
|
if (hasKey("web_ui_password"))
|
|
|
|
pref->setWebUIPassword(Utils::Password::PBKDF2::generate(it.value().toByteArray()));
|
|
|
|
if (hasKey("bypass_local_auth"))
|
|
|
|
pref->setWebUiLocalAuthEnabled(!it.value().toBool());
|
|
|
|
if (hasKey("bypass_auth_subnet_whitelist_enabled"))
|
|
|
|
pref->setWebUiAuthSubnetWhitelistEnabled(it.value().toBool());
|
|
|
|
if (hasKey("bypass_auth_subnet_whitelist")) {
|
2017-12-06 02:02:54 -05:00
|
|
|
// recognize new lines and commas as delimiters
|
2019-06-09 10:33:24 +08:00
|
|
|
pref->setWebUiAuthSubnetWhitelist(it.value().toString().split(QRegularExpression("\n|,"), QString::SkipEmptyParts));
|
2017-09-27 13:55:20 -04:00
|
|
|
}
|
2019-06-13 22:43:34 +08:00
|
|
|
if (hasKey("web_ui_session_timeout"))
|
|
|
|
pref->setWebUISessionTimeout(it.value().toInt());
|
2018-10-21 23:37:53 -04:00
|
|
|
// Use alternative Web UI
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("alternative_webui_enabled"))
|
2018-10-21 23:37:53 -04:00
|
|
|
pref->setAltWebUiEnabled(it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("alternative_webui_path"))
|
2018-10-21 23:37:53 -04:00
|
|
|
pref->setWebUiRootFolder(it.value().toString());
|
2018-05-21 23:33:44 +08:00
|
|
|
// Security
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("web_ui_clickjacking_protection_enabled"))
|
|
|
|
pref->setWebUiClickjackingProtectionEnabled(it.value().toBool());
|
|
|
|
if (hasKey("web_ui_csrf_protection_enabled"))
|
|
|
|
pref->setWebUiCSRFProtectionEnabled(it.value().toBool());
|
|
|
|
if (hasKey("web_ui_host_header_validation_enabled"))
|
|
|
|
pref->setWebUIHostHeaderValidationEnabled(it.value().toBool());
|
2015-07-08 09:06:41 +02:00
|
|
|
// Update my dynamic domain name
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("dyndns_enabled"))
|
|
|
|
pref->setDynDNSEnabled(it.value().toBool());
|
|
|
|
if (hasKey("dyndns_service"))
|
|
|
|
pref->setDynDNSService(it.value().toInt());
|
|
|
|
if (hasKey("dyndns_username"))
|
|
|
|
pref->setDynDNSUsername(it.value().toString());
|
|
|
|
if (hasKey("dyndns_password"))
|
|
|
|
pref->setDynDNSPassword(it.value().toString());
|
|
|
|
if (hasKey("dyndns_domain"))
|
|
|
|
pref->setDynDomainName(it.value().toString());
|
2015-07-08 09:06:41 +02:00
|
|
|
|
2015-06-22 14:02:09 +02:00
|
|
|
// Save preferences
|
|
|
|
pref->apply();
|
2017-10-14 16:27:21 +03:00
|
|
|
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("rss_refresh_interval"))
|
2018-05-15 15:59:28 +03:00
|
|
|
RSS::Session::instance()->setRefreshInterval(it.value().toUInt());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("rss_max_articles_per_feed"))
|
2018-05-15 15:59:28 +03:00
|
|
|
RSS::Session::instance()->setMaxArticlesPerFeed(it.value().toInt());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("rss_processing_enabled"))
|
2018-05-15 15:59:28 +03:00
|
|
|
RSS::Session::instance()->setProcessingEnabled(it.value().toBool());
|
2019-06-09 10:33:24 +08:00
|
|
|
if (hasKey("rss_auto_downloading_enabled"))
|
2018-05-15 15:59:28 +03:00
|
|
|
RSS::AutoDownloader::instance()->setProcessingEnabled(it.value().toBool());
|
2017-10-14 16:27:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void AppController::defaultSavePathAction()
|
|
|
|
{
|
|
|
|
setResult(BitTorrent::Session::instance()->defaultSavePath());
|
* Replace priority combo boxes by check boxes in Web UI as in Regular UI
* Prepare http server and preferences classes to add new settings to Web UI
* Tabified Program preferences in Web UI since there will be a lot of settings soon
* Started to add new settings to Web UI (PeX, LSD, Encryption, save path, temp path, scan dir, preallocateall, queueing, listen_port, upnp, nat-pmp, language, ip filter) -> Proxy is missing
* Added a command line parameter to change the web ui port
* Fix PeerGuardian .p2b binary filter support
2009-12-28 19:39:47 +00:00
|
|
|
}
|