mirror of
https://github.com/moparisthebest/sslh
synced 2024-11-13 12:45:05 -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