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
|
@ -1668,6 +1668,7 @@ lt::settings_pack SessionImpl::loadLTSettings() const
|
|||
settingsPack.set_int(lt::settings_pack::active_checking, maxActiveCheckingTorrents());
|
||||
|
||||
// I2P
|
||||
#if defined(QBT_USES_LIBTORRENT2) && TORRENT_USE_I2P
|
||||
if (isI2PEnabled())
|
||||
{
|
||||
settingsPack.set_str(lt::settings_pack::i2p_hostname, I2PAddress().toStdString());
|
||||
|
@ -1681,7 +1682,6 @@ lt::settings_pack SessionImpl::loadLTSettings() const
|
|||
settingsPack.set_bool(lt::settings_pack::allow_i2p_mixed, false);
|
||||
}
|
||||
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
// I2P session options
|
||||
settingsPack.set_int(lt::settings_pack::i2p_inbound_quantity, I2PInboundQuantity());
|
||||
settingsPack.set_int(lt::settings_pack::i2p_outbound_quantity, I2POutboundQuantity());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue