mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-30 16:34:16 +00:00
Revert using random port by default
Revert change introduced in https://github.com/qbittorrent/qBittorrent/pull/11637 and also revert the associated follow-up https://github.com/qbittorrent/qBittorrent/pull/12000. Reason: https://github.com/arvidn/libtorrent/pull/4335
This commit is contained in:
parent
06ceac4cda
commit
dc6a56afcb
@ -93,8 +93,7 @@ void handleChangedDefaults(const DefaultPreferencesMode mode)
|
|||||||
};
|
};
|
||||||
|
|
||||||
const QVector<DefaultValue> changedDefaults {
|
const QVector<DefaultValue> changedDefaults {
|
||||||
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false},
|
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false}
|
||||||
{QLatin1String {"BitTorrent/Session/UseRandomPort"}, false, true}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
||||||
|
@ -436,7 +436,7 @@ Session::Session(QObject *parent)
|
|||||||
, m_isBandwidthSchedulerEnabled(BITTORRENT_SESSION_KEY("BandwidthSchedulerEnabled"), false)
|
, m_isBandwidthSchedulerEnabled(BITTORRENT_SESSION_KEY("BandwidthSchedulerEnabled"), false)
|
||||||
, m_saveResumeDataInterval(BITTORRENT_SESSION_KEY("SaveResumeDataInterval"), 60)
|
, m_saveResumeDataInterval(BITTORRENT_SESSION_KEY("SaveResumeDataInterval"), 60)
|
||||||
, m_port(BITTORRENT_SESSION_KEY("Port"), -1)
|
, m_port(BITTORRENT_SESSION_KEY("Port"), -1)
|
||||||
, m_useRandomPort(BITTORRENT_SESSION_KEY("UseRandomPort"), true)
|
, m_useRandomPort(BITTORRENT_SESSION_KEY("UseRandomPort"), false)
|
||||||
, m_networkInterface(BITTORRENT_SESSION_KEY("Interface"))
|
, m_networkInterface(BITTORRENT_SESSION_KEY("Interface"))
|
||||||
, m_networkInterfaceName(BITTORRENT_SESSION_KEY("InterfaceName"))
|
, m_networkInterfaceName(BITTORRENT_SESSION_KEY("InterfaceName"))
|
||||||
, m_networkInterfaceAddress(BITTORRENT_SESSION_KEY("InterfaceAddress"))
|
, m_networkInterfaceAddress(BITTORRENT_SESSION_KEY("InterfaceAddress"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user