USE_IPV6 fixes
This commit is contained in:
parent
525c8090b7
commit
a8c72b47ab
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue