Browse Source
Merge pull request #2606 from kuangniu/master
Fix sockopt level.
pull/2608/head
Max Lv
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/udprelay.c
|
|
@ -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 |
|
|
|