From 498a0dff3315c2eb682ba6b54e55072627a27790 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Thu, 16 Jul 2026 11:25:30 +0200 Subject: [PATCH] Remove warning message when supplying a fname In order ot waran early in file outputs 75376d3 introduced a separate function for checking early the command line. As massing scanning option was not considered one got a warning, saying Warning: Target is not a server name: results may be completely wrong, at minimum trust may show false results. This fixes that, see #3107 . --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 2d69d3e..ead4482 100755 --- a/testssl.sh +++ b/testssl.sh @@ -26037,8 +26037,8 @@ issue_cmdline_warnings() { fileout_insert_warning "cmdline_ssl-native" "WARN" "Usage of '--ssl-native' is not recommended as it will return incomplete and maybe even incorrect results" fi tmp=${URI#*//} # remove https:// and (future) friends - if [[ ! $tmp =~ [a-zA-Z] ]] && [[ ! $tmp =~ $avoid_complaints ]]; then - # No letters indicate it's not a name + if [[ ! $tmp =~ [a-zA-Z] ]] && [[ ! $tmp =~ $avoid_complaints ]] && [[ -z "$FNAME" ]]; then + # No letters indicate it's not a name. No mass testing via via prln_warning " Warning: Target is not a server name: results may be completely wrong, at minimum trust may show false results." fileout_insert_warning "cmdline_ip-target" "WARN" "Target is not a server name: results may be completely wrong, at minimum trust may show false results." fi