mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-14 08:07:14 +03:00
clarify error message for setsockopt IP_TRANSPARENT
This commit is contained in:
parent
4610e220bd
commit
98807771e0
2
common.c
2
common.c
@ -251,7 +251,7 @@ int bind_peer(int fd, int fd_from)
|
||||
|
||||
#ifndef IP_BINDANY /* use IP_TRANSPARENT */
|
||||
res = setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, &trans, sizeof(trans));
|
||||
CHECK_RES_DIE(res, "setsockopt");
|
||||
CHECK_RES_DIE(res, "setsockopt IP_TRANSPARENT");
|
||||
#else
|
||||
if (from.ai_addr->sa_family==AF_INET) { /* IPv4 */
|
||||
res = setsockopt(fd, IPPROTO_IP, IP_BINDANY, &trans, sizeof(trans));
|
||||
|
Loading…
x
Reference in New Issue
Block a user