address is the sort key in policy::peer and should never change

This commit is contained in:
Arvid Norberg 2011-05-14 20:57:58 +00:00
parent fa61a1eada
commit a9e14217ac
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ namespace libtorrent
{
ipv4_peer(tcp::endpoint const& ip, bool connectable, int src);
address_v4 addr;
const address_v4 addr;
};
#if TORRENT_USE_I2P
@ -345,7 +345,7 @@ namespace libtorrent
{
ipv6_peer(tcp::endpoint const& ip, bool connectable, int src);
address_v6::bytes_type addr;
const address_v6::bytes_type addr;
};
#endif