fixed busted is_any check for 'ipv6' key in extended handshake

This commit is contained in:
Arvid Norberg
2008-09-20 16:21:16 +00:00
parent e46f2396cf
commit 98f9d5826c
2 changed files with 8 additions and 2 deletions

View File

@@ -79,6 +79,8 @@ namespace libtorrent
{
if (addr.is_v4())
return addr.to_v4() == address_v4::any();
else if (addr.to_v6().is_v4_mapped())
return (addr.to_v6().to_v4() == address_v4::any());
else
return addr.to_v6() == address_v6::any();
}