fix multicast

This commit is contained in:
PolynomialDivision 2017-12-12 13:48:51 +01:00
parent 49a9a8734f
commit 5153b0e012

View file

@ -54,7 +54,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_
}
/* Join the broadcast group: */
//command.imr_multiaddr.s_addr = inet_addr(_multicast_ip);
command.imr_multiaddr.s_addr = inet_addr(_multicast_ip);
command.imr_interface.s_addr = htonl (INADDR_ANY);
if (command.imr_multiaddr.s_addr == -1) {
perror("Wrong multicast address!\n");