From 4214894f5dd9408601a72c05c3c9469a75ce77f4 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 20 Jan 2020 16:43:25 +0800 Subject: [PATCH] Fix a typo --- src/udprelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udprelay.c b/src/udprelay.c index 9b9ab9ec..ba6b6cff 100644 --- a/src/udprelay.c +++ b/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");