fixed encrypted support flag bug
This commit is contained in:
parent
f8d026efbc
commit
64056a667f
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue