mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-04 01:20:59 +01:00 
			
		
		
		
	Merge pull request #642 from dcooper16/wrap_long_lines
Wrap long lines in display_rdns_etc()
This commit is contained in:
		
						commit
						8919b419e5
					
				
							
								
								
									
										10
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								testssl.sh
									
									
									
									
									
								
							@ -12176,7 +12176,7 @@ determine_service() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
display_rdns_etc() {
 | 
					display_rdns_etc() {
 | 
				
			||||||
     local ip
 | 
					     local ip further_ip_addrs=""
 | 
				
			||||||
     local nodeip="$(tr -d '[]' <<< $NODEIP)"     # for displaying IPv6 addresses we don't need []
 | 
					     local nodeip="$(tr -d '[]' <<< $NODEIP)"     # for displaying IPv6 addresses we don't need []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -12185,14 +12185,15 @@ display_rdns_etc() {
 | 
				
			|||||||
          outln "$PROXYIP:$PROXYPORT "
 | 
					          outln "$PROXYIP:$PROXYPORT "
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
     if [[ $(count_words "$IP46ADDRs") -gt 1 ]]; then
 | 
					     if [[ $(count_words "$IP46ADDRs") -gt 1 ]]; then
 | 
				
			||||||
          out " further IP addresses:  $CORRECT_SPACES"
 | 
					          out " further IP addresses:   $CORRECT_SPACES"
 | 
				
			||||||
          for ip in $IP46ADDRs; do
 | 
					          for ip in $IP46ADDRs; do
 | 
				
			||||||
               if [[ "$ip" == "$NODEIP" ]] || [[ "[$ip]" == "$NODEIP" ]]; then
 | 
					               if [[ "$ip" == "$NODEIP" ]] || [[ "[$ip]" == "$NODEIP" ]]; then
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
               else
 | 
					               else
 | 
				
			||||||
                    out " $ip"
 | 
					                    further_ip_addrs+="$ip "
 | 
				
			||||||
               fi
 | 
					               fi
 | 
				
			||||||
          done
 | 
					          done
 | 
				
			||||||
 | 
					          out_row_aligned_max_width "$further_ip_addrs" "                         $CORRECT_SPACES" $TERM_WIDTH out
 | 
				
			||||||
          outln
 | 
					          outln
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
     if "$LOCAL_A"; then
 | 
					     if "$LOCAL_A"; then
 | 
				
			||||||
@ -12201,7 +12202,8 @@ display_rdns_etc() {
 | 
				
			|||||||
          outln " A record via           $CORRECT_SPACES supplied IP \"$CMDLINE_IP\""
 | 
					          outln " A record via           $CORRECT_SPACES supplied IP \"$CMDLINE_IP\""
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
     if [[ -n "$rDNS" ]]; then
 | 
					     if [[ -n "$rDNS" ]]; then
 | 
				
			||||||
          printf " %-23s %s" "rDNS ($nodeip):" "$rDNS"
 | 
					          printf " %-23s %s" "rDNS ($nodeip):"
 | 
				
			||||||
 | 
					          out_row_aligned_max_width "$rDNS" "                         $CORRECT_SPACES" $TERM_WIDTH out
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user