mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
clarify error message for setsockopt IP_TRANSPARENT
This commit is contained in:
1 parent
4610e220bd
commit
98807771e0
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user