mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
parent
379b0dbe40
commit
3b948b0130
5 changed files with 20 additions and 7 deletions
|
@ -153,7 +153,7 @@ namespace
|
|||
PEER_TURNOVER_CUTOFF,
|
||||
PEER_TURNOVER_INTERVAL,
|
||||
REQUEST_QUEUE_SIZE,
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
#if defined(QBT_USES_LIBTORRENT2) && TORRENT_USE_I2P
|
||||
I2P_INBOUND_QUANTITY,
|
||||
I2P_OUTBOUND_QUANTITY,
|
||||
I2P_INBOUND_LENGTH,
|
||||
|
@ -325,7 +325,7 @@ void AdvancedSettings::saveAdvancedSettings() const
|
|||
session->setPeerTurnoverInterval(m_spinBoxPeerTurnoverInterval.value());
|
||||
// Maximum outstanding requests to a single peer
|
||||
session->setRequestQueueSize(m_spinBoxRequestQueueSize.value());
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
#if defined(QBT_USES_LIBTORRENT2) && TORRENT_USE_I2P
|
||||
// I2P session options
|
||||
session->setI2PInboundQuantity(m_spinBoxI2PInboundQuantity.value());
|
||||
session->setI2POutboundQuantity(m_spinBoxI2POutboundQuantity.value());
|
||||
|
@ -839,7 +839,7 @@ void AdvancedSettings::loadAdvancedSettings()
|
|||
m_spinBoxRequestQueueSize.setValue(session->requestQueueSize());
|
||||
addRow(REQUEST_QUEUE_SIZE, (tr("Maximum outstanding requests to a single peer") + u' ' + makeLink(u"https://www.libtorrent.org/reference-Settings.html#max_out_request_queue", u"(?)"))
|
||||
, &m_spinBoxRequestQueueSize);
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
#if defined(QBT_USES_LIBTORRENT2) && TORRENT_USE_I2P
|
||||
m_spinBoxI2PInboundQuantity.setMinimum(1);
|
||||
m_spinBoxI2PInboundQuantity.setMaximum(16);
|
||||
m_spinBoxI2PInboundQuantity.setValue(session->I2PInboundQuantity());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue