- BUGFIX: supplying ip addresses only works again

This commit is contained in:
Dirk 2014-10-07 11:14:39 +02:00
parent e117fd9612
commit 723ab08258

View File

@ -1628,6 +1628,11 @@ parse_hn_port() {
get_dns_entries() {
test4iponly=`printf $NODE | sed -e 's/[0-9]//g' -e 's/\.//g'`
if [ "x$test4iponly" == "x" ]; then # only an IPv4 address was supplied
IP4=$NODE
SNI="" # override this as we test the IP only
else
# for security testing sometimes we have local host entries, so getent is preferred
if which getent 2>&1 >/dev/null ; then
getent ahostsv4 $NODE 2>/dev/null >/dev/null
@ -1658,6 +1663,7 @@ get_dns_entries() {
IP6=""
fi
fi
fi
IPADDRs=`echo $IP4`
[ ! -z "$IP6" ] && IPADDRs=`echo $IP4`" "`echo $IP6`
@ -1878,7 +1884,7 @@ case "$1" in
exit $ret ;;
esac
# $Id: testssl.sh,v 1.116 2014/09/24 09:29:05 dirkw Exp $
# $Id: testssl.sh,v 1.118 2014/10/07 09:12:53 dirkw Exp $
# vim:ts=5:sw=5