Skip to content

Instantly share code, notes, and snippets.

@alhafoudh
Created December 15, 2013 23:17
Show Gist options
  • Save alhafoudh/7979717 to your computer and use it in GitHub Desktop.
Save alhafoudh/7979717 to your computer and use it in GitHub Desktop.
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp
index 7925c6e..fc26161 100644
--- a/src/pgm_socket.cpp
+++ b/src/pgm_socket.cpp
@@ -325,7 +325,7 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
// Set IP level parameters.
{
// Multicast loopback disabled by default
- const int multicast_loop = 0;
+ const int multicast_loop = 1;
if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_MULTICAST_LOOP,
&multicast_loop, sizeof (multicast_loop)))
goto err_abort;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment