mirror of
https://github.com/moparisthebest/sslh
synced 2024-12-22 07:18:57 -05:00
Changed SOL_IP to more-portable IPPROTO_IP
This commit is contained in:
parent
2781c75ff9
commit
536f7dee83
2
common.c
2
common.c
@ -112,7 +112,7 @@ int bind_peer(int fd, int fd_from)
|
||||
|
||||
res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen);
|
||||
CHECK_RES_DIE(res, "getpeername");
|
||||
res = setsockopt(fd, SOL_IP, IP_TRANSPARENT, &trans, sizeof(trans));
|
||||
res = setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, &trans, sizeof(trans));
|
||||
CHECK_RES_DIE(res, "setsockopt");
|
||||
res = bind(fd, from.ai_addr, from.ai_addrlen);
|
||||
CHECK_RES_RETURN(res, "bind");
|
||||
|
Loading…
Reference in New Issue
Block a user