[openssh-commits] [openssh] 05/05: upstream: Use ssh -Q addressfamily to determine if IPv6 is supported.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Nov 2 18:32:33 AEDT 2026


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 4001f0adace296a69ec979a70380d7016d43bb7f
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Mon Nov 2 07:06:52 2026 +0000

    upstream: Use ssh -Q addressfamily to determine if IPv6 is supported.
    
    OpenBSD-Regress-ID: 2211808223316d349ec59928d88053f3c4943555
---
 regress/cfgparse.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regress/cfgparse.sh b/regress/cfgparse.sh
index de6ff5537..bec72662a 100644
--- a/regress/cfgparse.sh
+++ b/regress/cfgparse.sh
@@ -1,4 +1,4 @@
-#	$OpenBSD: cfgparse.sh,v 1.13 2026/10/30 08:12:58 djm Exp $
+#	$OpenBSD: cfgparse.sh,v 1.14 2026/11/02 07:06:52 dtucker Exp $
 #	Placed in the Public Domain.
 
 tid="sshd config parse"
@@ -24,7 +24,7 @@ verbose "reparse regress config"
 # Detect IPv6 support and if found, define variables for the needed
 # config lines.  This allows tests to also work on Portable platforms
 # lacking IPv6 support without having diffs that make syncs harder.
-if $SUDO ${SSHD} -tq -f $OBJ/sshd_config_minimal -oListenAddress=::1 ; then
+if ${SSH} -Qaddressfamily | grep inet6 >/dev/null; then
 	trace "IPv6 support detected"
 	LISTENADDRESS_IPV6_LOOPBACK="listenaddress ::1"
 	LISTENADDRESS_IPV6_LOOPBACK_1234="listenaddress [::1]:1234"

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list