Lift upper limit of "Max concurrent HTTP announces" option

Closes #13800.
This commit is contained in:
Chocobo1 2020-12-01 10:30:47 +08:00
parent e6c174c33b
commit 5110994f81
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -615,6 +615,7 @@ void AdvancedSettings::loadAdvancedSettings()
addRow(ANNOUNCE_IP, tr("IP Address to report to trackers (requires restart)"), &m_lineEditAnnounceIP);
#if (LIBTORRENT_VERSION_NUM >= 10207)
// Max concurrent HTTP announces
m_spinBoxMaxConcurrentHTTPAnnounces.setMaximum(std::numeric_limits<int>::max());
m_spinBoxMaxConcurrentHTTPAnnounces.setValue(session->maxConcurrentHTTPAnnounces());
addRow(MAX_CONCURRENT_HTTP_ANNOUNCES, (tr("Max concurrent HTTP announces") + ' ' + makeLink("https://www.libtorrent.org/reference-Settings.html#max_concurrent_http_announces", "(?)"))
, &m_spinBoxMaxConcurrentHTTPAnnounces);