diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.cpp 2026-09-05 02:24:27.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.cpp 2026-09-05 01:58:38.000000000 +0000 @@ -1217,10 +1217,4 @@ if (m_ReceiveBuffer[20 + 5] & 0x10) // bit 20 of reserved, BEP10 SendExtendedMsg (); // extended handshake if peer supports BEP10 - else if (!m_Torrent->GetLength ()) // we are magnet without info - { - LogPrint (eLogInfo, "Torrents: Magnet doesn't have info yet, but BEP10 is not supported by this peer"); - Terminate (); - return 0; - } // send bitfield if not empty auto [bitfield, empty] = m_Torrent->CreateBitfield (); @@ -1652,15 +1646,7 @@ return 0; }); - if (!m_Torrent->GetLength ()) // magnet without info - { - if (m_RemoteMetadataSize) // peer supports BEP9 - // request first piece of info - SendExtendedMsg (EXTENSION_MSGID_UT_METADATA, CreateDictionary ({{ "msg_type", CreateInteger (0) }, { "piece", CreateInteger (0) }})); - else - { - LogPrint (eLogInfo, "Torrents: Magnet doesn't have info yet, but BEP9 is not supported by this peer"); - Close (); - } - } + if (!m_Torrent->GetLength () && m_RemoteMetadataSize) // torrent is magnet and peer supports BEP9 + // request first piece of info + SendExtendedMsg (EXTENSION_MSGID_UT_METADATA, CreateDictionary ({{ "msg_type", CreateInteger (0) }, { "piece", CreateInteger (0) }})); } else