fix reporting &redundant= in tracker announces

This commit is contained in:
arvidn 2018-03-07 13:19:39 +01:00 committed by Arvid Norberg
parent f052480e3f
commit 05f7a95604
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
* fix reporting &redundant= in tracker announces
* fix tie-break in duplicate peer connection disconnect logic
* fix issue with SSL tracker connections left in CLOSE_WAIT state
* defer truncating existing files until the first time we write to them

View File

@ -3203,6 +3203,8 @@ namespace {
// exclude redundant bytes if we should
if (!settings().get_bool(settings_pack::report_true_downloaded))
req.downloaded -= m_total_redundant_bytes;
if (settings().get_bool(settings_pack::report_redundant_bytes))
req.redundant = m_total_redundant_bytes;
if (req.downloaded < 0) req.downloaded = 0;
req.event = e;