Browse Source

Add friendly IP_TRANSPARENT fatal message

pull/604/head
Kim 8 years ago
committed by Max Lv
parent
commit
c9098f40a5
1 changed files with 2 additions and 1 deletions
  1. 3
      src/udprelay.c

3
src/udprelay.c

@ -445,7 +445,8 @@ int create_server_socket(const char *host, const char *port)
#ifdef MODULE_REDIR
if (setsockopt(server_sock, SOL_IP, IP_TRANSPARENT, &opt, sizeof(opt))) {
FATAL("[udp] setsockopt IP_TRANSPARENT");
ERROR("[udp] setsockopt IP_TRANSPARENT");
exit(EXIT_FAILURE);
}
if (setsockopt(server_sock, IPPROTO_IP, IP_RECVORIGDSTADDR, &opt, sizeof(opt))) {
FATAL("[udp] setsockopt IP_RECVORIGDSTADDR");

Loading…
Cancel
Save