if (g_reusePort) {
#if defined(SO_REUSEPORT_LB)
try {
- SSetsockopt(fd, SOL_SOCKET, SO_REUSEPORT_LB, 1);
+ SSetsockopt(socketFd, SOL_SOCKET, SO_REUSEPORT_LB, 1);
}
catch (const std::exception& e) {
throw PDNSException(std::string("SO_REUSEPORT_LB: ") + e.what());
if (g_reusePort) {
#if defined(SO_REUSEPORT_LB)
try {
- SSetsockopt(fd, SOL_SOCKET, SO_REUSEPORT_LB, 1);
+ SSetsockopt(socketFd, SOL_SOCKET, SO_REUSEPORT_LB, 1);
}
catch (const std::exception& e) {
throw PDNSException(std::string("SO_REUSEPORT_LB: ") + e.what());