fixed encrypted support flag bug

This commit is contained in:
Arvid Norberg 2007-10-11 22:02:00 +00:00
parent f8d026efbc
commit 64056a667f
1 changed files with 3 additions and 3 deletions

View File

@ -1045,10 +1045,10 @@ namespace libtorrent
// we don't have any info about this peer. // we don't have any info about this peer.
// add a new entry // add a new entry
peer p(remote, peer::connectable, src); i = m_peers.insert(std::make_pair(remote.address()
i = m_peers.insert(std::make_pair(remote.address(), p)); , peer(remote, peer::connectable, src)));
#ifndef TORRENT_DISABLE_ENCRYPTION #ifndef TORRENT_DISABLE_ENCRYPTION
if (flags & 0x01) p.pe_support = true; if (flags & 0x01) i->second.pe_support = true;
#endif #endif
if (flags & 0x02) i->second.seed = true; if (flags & 0x02) i->second.seed = true;