From e23afb900bcc7afc543517a7885186d29f0ce23e Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 28 Nov 2018 12:24:45 +0100 Subject: [PATCH] Catch better a user cmdline problem .. when specifying --ip=one AND and an URI --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 41814bd..4fd6395 100755 --- a/testssl.sh +++ b/testssl.sh @@ -18033,6 +18033,7 @@ parse_cmd_line() { [[ -n "$2" ]] && fatal "URI comes last" $ERR_CMDLINE fi [[ $CMDLINE_IP == one ]] && [[ "$NODNS" == none ]] && fatal "\"--ip=one\" and \"--nodns=none\" don't work together" $ERR_CMDLINE + [[ $CMDLINE_IP == one ]] && ( is_ipv4addr "$URI" || is_ipv6addr "$URI" ) && fatal "\"--ip=one\" plus supplying an IP address doesn't work" $ERR_CMDLINE "$do_mx_all_ips" && [[ "$NODNS" == none ]] && fatal "\"--mx\" and \"--nodns=none\" don't work together" $ERR_CMDLINE ADDITIONAL_CA_FILES="${ADDITIONAL_CA_FILES//,/ }"