Browse Source

Fix sockopt level.

pull/2606/head
kuangniu 4 weeks ago
parent
commit
0f87d7cb68
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/udprelay.c

+ 1
- 1
src/udprelay.c View File

@@ -521,7 +521,7 @@ create_server_socket(const char *host, const char *port)
exit(EXIT_FAILURE);
}

if (setsockopt(server_sock, SOL_IP, flag_r, &opt, sizeof(opt))) {
if (setsockopt(server_sock, sol, flag_r, &opt, sizeof(opt))) {
FATAL("[udp] setsockopt IP_RECVORIGDSTADDR");
}
#endif


Loading…
Cancel
Save