mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Additional fix for missing SO_REUSEPORT
edge_utils already fixed in 77392f8e53
This commit is contained in:
parent
e989f475a1
commit
d4205d36fd
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…
Reference in New Issue
Block a user