From 64056a667f6134584b09b8d34dae5878d4c3a0ca Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 11 Oct 2007 22:02:00 +0000 Subject: [PATCH] fixed encrypted support flag bug --- src/policy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/policy.cpp b/src/policy.cpp index dff860bd2..c337d2456 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -1045,10 +1045,10 @@ namespace libtorrent // we don't have any info about this peer. // add a new entry - peer p(remote, peer::connectable, src); - i = m_peers.insert(std::make_pair(remote.address(), p)); + i = m_peers.insert(std::make_pair(remote.address() + , peer(remote, peer::connectable, src))); #ifndef TORRENT_DISABLE_ENCRYPTION - if (flags & 0x01) p.pe_support = true; + if (flags & 0x01) i->second.pe_support = true; #endif if (flags & 0x02) i->second.seed = true;