Browse Source

Fix a typo

pull/2604/head
Max Lv 4 years ago
parent
commit
4214894f5d
1 changed files with 1 additions and 1 deletions
  1. 2
      src/udprelay.c

2
src/udprelay.c

@ -514,7 +514,7 @@ create_server_socket(const char *host, const char *port)
#ifdef MODULE_REDIR
int sol = rp->ai_family == AF_INET ? SOL_IP : SOL_IPV6;
int flag_t = rp->ai_family == AF_INET ? IP_TRANSPARENT : IPV6_TRANSPARENT;
int flag_r = rp->ai_family == AF_INET ? IP_RECVORIGDSTADDR : IPV6_TRANSPARENT;
int flag_r = rp->ai_family == AF_INET ? IP_RECVORIGDSTADDR : IPV6_RECVORIGDSTADDR;
if (setsockopt(server_sock, sol, flag_t, &opt, sizeof(opt))) {
ERROR("[udp] setsockopt IP_TRANSPARENT");

Loading…
Cancel
Save