From b4bbee1df9b9c7c27751fc18a88afb74ada0f4b1 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 2 Nov 2017 18:24:08 +0100 Subject: [PATCH] testminiwget.sh: test IPV6 availability --- miniupnpc/testminiwget.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniupnpc/testminiwget.sh b/miniupnpc/testminiwget.sh index 729a057..c8a0ff8 100755 --- a/miniupnpc/testminiwget.sh +++ b/miniupnpc/testminiwget.sh @@ -26,6 +26,10 @@ if [ -z "$IPCONFIG" ] ; then IPCONFIG="/sbin/ifconfig" fi +if ! $IPCONFIG -a | grep inet6 ; then + HAVE_IPV6=no +fi + case "$HAVE_IPV6" in n|no|0) ADDR=localhost