- (djm) Only listen for IPv6 connections on AF_INET6 sockets; patch from
tsr2600 AT gmail.com
This commit is contained in:
parent
e27220eb5b
commit
49d2a2826a
|
@ -1,6 +1,8 @@
|
||||||
20080119
|
20080119
|
||||||
- (djm) Silence noice from expr in ssh-copy-id; patch from
|
- (djm) Silence noice from expr in ssh-copy-id; patch from
|
||||||
mikel AT mikelward.com
|
mikel AT mikelward.com
|
||||||
|
- (djm) Only listen for IPv6 connections on AF_INET6 sockets; patch from
|
||||||
|
tsr2600 AT gmail.com
|
||||||
|
|
||||||
20080102
|
20080102
|
||||||
- (dtucker) [configure.ac] Fix message for -fstack-protector-all test.
|
- (dtucker) [configure.ac] Fix message for -fstack-protector-all test.
|
||||||
|
@ -3523,4 +3525,4 @@
|
||||||
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
||||||
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4818 2008/01/19 18:52:04 djm Exp $
|
$Id: ChangeLog,v 1.4819 2008/01/19 21:56:00 djm Exp $
|
||||||
|
|
10
sshd.c
10
sshd.c
|
@ -976,6 +976,16 @@ server_listen(void)
|
||||||
&on, sizeof(on)) == -1)
|
&on, sizeof(on)) == -1)
|
||||||
error("setsockopt SO_REUSEADDR: %s", strerror(errno));
|
error("setsockopt SO_REUSEADDR: %s", strerror(errno));
|
||||||
|
|
||||||
|
#ifdef IPV6_V6ONLY
|
||||||
|
/* Only communicate in IPv6 over AF_INET6 sockets. */
|
||||||
|
if (ai->ai_family == AF_INET6) {
|
||||||
|
if (setsockopt(listen_sock, IPPROTO_IPV6, IPV6_V6ONLY,
|
||||||
|
&on, sizeof(on)) == -1)
|
||||||
|
error("setsockopt IPV6_V6ONLY: %s",
|
||||||
|
strerror(errno));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
debug("Bind to port %s on %s.", strport, ntop);
|
debug("Bind to port %s on %s.", strport, ntop);
|
||||||
|
|
||||||
/* Bind the socket to the desired port. */
|
/* Bind the socket to the desired port. */
|
||||||
|
|
Loading…
Reference in New Issue