diff --git a/libi2pd_client/Torrents.cpp b/libi2pd_client/Torrents.cpp index b17a2634..fb1e159f 100644 --- a/libi2pd_client/Torrents.cpp +++ b/libi2pd_client/Torrents.cpp @@ -1947,6 +1947,11 @@ namespace torrents { if (!torrent) return; LogPrint (eLogDebug, "Torrents: Connecting to peer ", peer.ToBase32 () + ".b32.i2p"); + if (peer == GetLocalDestination ()->GetIdentHash ()) + { + LogPrint (eLogInfo, "Torrents: Can't connect to self"); + return; + } CreateStream ([this, torrent, peer](std::shared_ptr stream) { if (stream)