mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 22:23:23 +00:00
Just drop IPV6_V6ONLY (it never works right anyway)
This doesn't seem to work as documented on any system.
This commit is contained in:
@@ -430,14 +430,6 @@ server_create(int port)
|
|||||||
if (r == -1)
|
if (r == -1)
|
||||||
logmsg(LOG_DEBUG, "errno = %d, %s", errno, strerror(errno));
|
logmsg(LOG_DEBUG, "errno = %d, %s", errno, strerror(errno));
|
||||||
|
|
||||||
#if defined(IPV6_V6ONLY)
|
|
||||||
value = 0;
|
|
||||||
r = setsockopt(s, SOL_SOCKET, IPV6_V6ONLY, &value, sizeof(value));
|
|
||||||
logmsg(LOG_DEBUG, "setsockopt(IPV6_V6ONLY, false) = %d", r);
|
|
||||||
if (r == -1)
|
|
||||||
logmsg(LOG_DEBUG, "errno = %d, %s", errno, strerror(errno));
|
|
||||||
#endif /* IPV6_V6ONLY */
|
|
||||||
|
|
||||||
struct sockaddr_in6 addr = {
|
struct sockaddr_in6 addr = {
|
||||||
.sin6_family = AF_INET6,
|
.sin6_family = AF_INET6,
|
||||||
.sin6_port = htons(port),
|
.sin6_port = htons(port),
|
||||||
|
|||||||
Reference in New Issue
Block a user