Drop I2P support with libtorrent 1.2

PR #19207.
Closes #19152.
This commit is contained in:
Vladimir Golovnev
2023-06-23 16:24:34 +03:00
committed by GitHub
parent 379b0dbe40
commit 3b948b0130
5 changed files with 20 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ QString PeerInfo::I2PAddress() const
if (!useI2PSocket())
return {};
#ifdef QBT_USES_LIBTORRENT2
#if defined(QBT_USES_LIBTORRENT2) && TORRENT_USE_I2P
if (m_I2PAddress.isEmpty())
{
const lt::sha256_hash destHash = m_nativeInfo.i2p_destination();