Browse Source

Merge pull request #12044 from FranciscoPombal/fix-port

Revert using random port by default
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
68709c3112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/upgrade.cpp
  2. 2
      src/base/bittorrent/session.cpp

3
src/app/upgrade.cpp

@ -93,8 +93,7 @@ void handleChangedDefaults(const DefaultPreferencesMode mode) @@ -93,8 +93,7 @@ void handleChangedDefaults(const DefaultPreferencesMode mode)
};
const QVector<DefaultValue> changedDefaults {
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false},
{QLatin1String {"BitTorrent/Session/UseRandomPort"}, false, true}
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false}
};
SettingsStorage *settingsStorage {SettingsStorage::instance()};

2
src/base/bittorrent/session.cpp

@ -436,7 +436,7 @@ Session::Session(QObject *parent) @@ -436,7 +436,7 @@ Session::Session(QObject *parent)
, m_isBandwidthSchedulerEnabled(BITTORRENT_SESSION_KEY("BandwidthSchedulerEnabled"), false)
, m_saveResumeDataInterval(BITTORRENT_SESSION_KEY("SaveResumeDataInterval"), 60)
, 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_networkInterfaceName(BITTORRENT_SESSION_KEY("InterfaceName"))
, m_networkInterfaceAddress(BITTORRENT_SESSION_KEY("InterfaceAddress"))

Loading…
Cancel
Save