mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-30 21:35:26 +01:00 
			
		
		
		
	Merge pull request #2845 from testssl/fix_misleading_ipv4_msg_3.2
Fix displayed message when IPv6 needs to be tested too (3.2)
This commit is contained in:
		
							
								
								
									
										14
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								testssl.sh
									
									
									
									
									
								
							| @@ -23134,7 +23134,12 @@ run_mx_all_ips() { | ||||
|                determine_ip_addresses || continue | ||||
|                if [[ $(count_words "$IPADDRs") -gt 1 ]]; then    # we have more than one ipv4 address to check | ||||
|                     MULTIPLE_CHECKS=true | ||||
|                     pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs" | ||||
|                     if [[ "$HAS_IPv6" ]]; then | ||||
|                     pr_bold "Testing all IP addresses (port $PORT): " | ||||
|                else | ||||
|                     pr_bold "Testing all IPv4 addresses (port $PORT): " | ||||
|                fi | ||||
|                outln "$IPADDRs" | ||||
|                     for ip in $IPADDRs; do | ||||
|                          NODEIP="$ip" | ||||
|                          lets_roll "${STARTTLS_PROTOCOL}" | ||||
| @@ -25055,7 +25060,12 @@ lets_roll() { | ||||
|           determine_ip_addresses | ||||
|           if [[ $(count_words "$IPADDRs") -gt 1 ]]; then    # we have more than one ipv4 address to check | ||||
|                MULTIPLE_CHECKS=true | ||||
|                pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs" | ||||
|                if [[ "$HAS_IPv6" ]]; then | ||||
|                     pr_bold "Testing all IP addresses (port $PORT): " | ||||
|                else | ||||
|                     pr_bold "Testing all IPv4 addresses (port $PORT): " | ||||
|                fi | ||||
|                outln "$IPADDRs" | ||||
|                for ip in $IPADDRs; do | ||||
|                     draw_line "-" $((TERM_WIDTH * 2 / 3)) | ||||
|                     outln | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter