Browse Source

Additional fix for missing SO_REUSEPORT

edge_utils already fixed in 77392f8e53
pull/100/head
emanuele-f 6 years ago
parent
commit
d4205d36fd
  1. 2
      edge.c

2
edge.c

@ -730,7 +730,7 @@ int main(int argc, char* argv[]) {
/* allow multiple sockets to use the same PORT number */
setsockopt(eee.udp_multicast_sock, SOL_SOCKET, SO_REUSEADDR, &enable_reuse, sizeof(enable_reuse));
#ifndef WIN32 /* no SO_REUSEPORT in Windows */
#ifdef SO_REUSEPORT /* no SO_REUSEPORT in Windows / old linux versions */
setsockopt(eee.udp_multicast_sock, SOL_SOCKET, SO_REUSEPORT, &enable_reuse, sizeof(enable_reuse));
#endif

Loading…
Cancel
Save