testminiwget.sh: test IPV6 availability

This commit is contained in:
Thomas Bernard 2017-11-02 18:24:08 +01:00
parent 6600c52b67
commit b4bbee1df9
1 changed files with 4 additions and 0 deletions

View File

@ -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