mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
set SO_REUSEPORT only for multicast
This commit is contained in:
@@ -223,7 +223,7 @@ if_register_socket(struct interface_info *info, int family,
|
||||
* DHCPv4 sockets; we can't yet support BSD sockets well, much
|
||||
* less multiple sockets.
|
||||
*/
|
||||
if (local_family == AF_INET6) {
|
||||
if ((local_family == AF_INET6) && *do_multicast) {
|
||||
flag = 1;
|
||||
if (setsockopt(sock, SOL_SOCKET, SO_REUSEPORT,
|
||||
(char *)&flag, sizeof(flag)) < 0) {
|
||||
|
Reference in New Issue
Block a user