Browse Source

Merge pull request #2606 from kuangniu/master

Fix sockopt level.
pull/2608/head
Max Lv GitHub 4 weeks ago
parent
commit
b6a83d9497
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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