diff --git a/src/socket.c b/src/socket.c index 098da93..5e93997 100644 --- a/src/socket.c +++ b/src/socket.c @@ -128,6 +128,11 @@ skip: switch (family) { ERR("setsockopt(REUSEADDR), suspending inet"); return -1; } +#ifdef SO_REUSEPORT + if (setsockopt(sd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) < 0) { + ERR("setsockopt(REUSEPORT), suspending inet"); + } +#endif break; }