fixed bug in broadcast socket (made local service discovery not work)

This commit is contained in:
Arvid Norberg 2008-09-22 17:43:57 +00:00
parent 791a1f4365
commit 67bed1407f
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ namespace libtorrent
, end(interfaces.end()); i != end; ++i)
{
// only broadcast to IPv4 addresses that are not local
if (!is_local(i->interface_address)) continue;
if (is_local(i->interface_address)) continue;
// only multicast on compatible networks
if (i->interface_address.is_v4() != multicast_endpoint.address().is_v4()) continue;
// ignore any loopback interface