From 67bed1407fdd7d603054e78436f68b6f20b89df2 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 22 Sep 2008 17:43:57 +0000 Subject: [PATCH] fixed bug in broadcast socket (made local service discovery not work) --- src/broadcast_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcast_socket.cpp b/src/broadcast_socket.cpp index d9fd2470f..deefe23be 100644 --- a/src/broadcast_socket.cpp +++ b/src/broadcast_socket.cpp @@ -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