Skip to content

Commit

Permalink
Ensure SO_REUSEPORT is applied if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
semigodking committed Nov 26, 2023
1 parent 285e77f commit b9af495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redsocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,8 @@ static int redsocks_init_instance(redsocks_instance *instance)
if (make_socket_transparent(fd))
log_error(LOG_WARNING, "Continue without TPROXY support");

// if (apply_reuseport(fd))
// log_error(LOG_WARNING, "Continue without SO_REUSEPORT enabled");
if (apply_reuseport(fd))
log_error(LOG_WARNING, "Continue without SO_REUSEPORT enabled");

#if defined(__APPLE__) || defined(__FreeBSD__)
bindaddr_len = instance->config.bindaddr.ss_len > 0 ? instance->config.bindaddr.ss_len : sizeof(instance->config.bindaddr);
Expand Down

0 comments on commit b9af495

Please sign in to comment.