From f9061aa341ea1727d729c6664727fa7416dd39c8 Mon Sep 17 00:00:00 2001 From: Steve <6131869+SteveVaneeckhout@users.noreply.github.com> Date: Thu, 28 May 2026 23:47:44 +0200 Subject: [PATCH] Fix -4/-6 flag being ignored when no specific test is selected set_scanning_defaults() reset do_ipv4_only/do_ipv6_only to false. When no individual test is requested on the command line, count_do_variables returns 0 and parse_cmd_line() calls set_scanning_defaults() to enable the standard test suite, which silently wiped out the user's -4/-6 selection. As a result determine_ip_addresses() fell through to its "scan everything" branch and scanned both the A and AAAA records, producing one scanResult per IP. The IP-version flags are connection options, not test-selection state, and are already initialized in initialize_globals(), so remove the stray resets from set_scanning_defaults(). Co-Authored-By: Claude Opus 4.8 --- testssl.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index 18c741a..0327f71 100755 --- a/testssl.sh +++ b/testssl.sh @@ -24574,9 +24574,6 @@ set_scanning_defaults() { VULN_COUNT=14 fi do_rating=true - - do_ipv6_only=false - do_ipv4_only=false } # returns number of $do variables set = number of run_funcs() to perform