We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a233b4f commit 6e61f4bCopy full SHA for 6e61f4b
controls/ssl_test.rb
@@ -62,7 +62,11 @@
62
63
# Filter out ports that don't respond to any version of SSL
64
sslports = tcpports.find_all do |tcpport|
65
- !exclude_ports.include?(tcpport[:port]) && (ssl(tcpport).enabled? unless force_ssl)
+ if force_ssl
66
+ !exclude_ports.include?(tcpport[:port])
67
+ else
68
+ !exclude_ports.include?(tcpport[:port]) && ssl(tcpport).enabled?
69
+ end
70
end
71
72
# Troubleshooting control to show InSpec version and list
0 commit comments