Skip to content

Commit 5a09f99

Browse files
FranciscoPombalsledgehammer999
authored andcommitted
Revert using random port by default
Revert change introduced in #11637 and also revert the associated follow-up #12000. Reason: arvidn/libtorrent#4335
1 parent dbde206 commit 5a09f99

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/upgrade.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ void handleChangedDefaults(const DefaultPreferencesMode mode)
9393
};
9494

9595
const QVector<DefaultValue> changedDefaults {
96-
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false},
97-
{QLatin1String {"BitTorrent/Session/UseRandomPort"}, false, true}
96+
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false}
9897
};
9998

10099
SettingsStorage *settingsStorage {SettingsStorage::instance()};

src/base/bittorrent/session.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Session::Session(QObject *parent)
436436
, m_isBandwidthSchedulerEnabled(BITTORRENT_SESSION_KEY("BandwidthSchedulerEnabled"), false)
437437
, m_saveResumeDataInterval(BITTORRENT_SESSION_KEY("SaveResumeDataInterval"), 60)
438438
, m_port(BITTORRENT_SESSION_KEY("Port"), -1)
439-
, m_useRandomPort(BITTORRENT_SESSION_KEY("UseRandomPort"), true)
439+
, m_useRandomPort(BITTORRENT_SESSION_KEY("UseRandomPort"), false)
440440
, m_networkInterface(BITTORRENT_SESSION_KEY("Interface"))
441441
, m_networkInterfaceName(BITTORRENT_SESSION_KEY("InterfaceName"))
442442
, m_networkInterfaceAddress(BITTORRENT_SESSION_KEY("InterfaceAddress"))

0 commit comments

Comments
 (0)