USE_IPV6 fixes

This commit is contained in:
Arvid Norberg 2009-10-19 02:49:20 +00:00
parent 525c8090b7
commit a8c72b47ab
1 changed files with 2 additions and 0 deletions

View File

@ -111,9 +111,11 @@ void observer::set_target(udp::endpoint const& ep)
address observer::target_addr() const
{
#if TORRENT_USE_IPV6
if (m_is_v6)
return address_v6(m_addr.v6);
else
#endif
return address_v4(m_addr.v4);
}