diff --git a/test/test_net_udp.c b/test/test_net_udp.c index 7614af51b..b5b847cc6 100644 --- a/test/test_net_udp.c +++ b/test/test_net_udp.c @@ -354,7 +354,11 @@ int test_net_udp(void) printf ("Testing UDP/IP networking (IPv6 multicast) ............................... "); fflush(stdout); - s1 = udp_init("ff01::2:7ffe", 5004, 5004, 1, 0, false); + const char *iface = NULL; +#ifdef HAVE_MACOSX + iface = "en0"; +#endif + s1 = udp_init_if("ff01::2:7ffe", iface, 5004, 5004, 1, 0, false); if (s1 == NULL) { printf("FAIL\n"); printf(" Cannot initialize socket\n");