mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Improve embedded tracker
Now it conforms to BEPs more closely.
This commit is contained in:
@@ -713,10 +713,10 @@ void AppController::setPreferencesAction()
|
||||
if (hasKey("enable_multi_connections_from_same_ip"))
|
||||
session->setMultiConnectionsPerIpEnabled(it.value().toBool());
|
||||
// Embedded tracker
|
||||
if (hasKey("enable_embedded_tracker"))
|
||||
session->setTrackerEnabled(it.value().toBool());
|
||||
if (hasKey("embedded_tracker_port"))
|
||||
pref->setTrackerPort(it.value().toInt());
|
||||
if (hasKey("enable_embedded_tracker"))
|
||||
session->setTrackerEnabled(it.value().toBool());
|
||||
// Choking algorithm
|
||||
if (hasKey("upload_slots_behavior"))
|
||||
session->setChokingAlgorithm(static_cast<BitTorrent::ChokingAlgorithm>(it.value().toInt()));
|
||||
|
||||
Reference in New Issue
Block a user