diff options
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index a604f80..ab57dff 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -387,10 +387,21 @@ module Custodian # def run_test + # + # If the line disables us then return early + # + if ( @line =~ /no_ssl_check/ ) + return true + end + + + # + # Get the current hour. + # hour = Time.now.hour # - # If outside 10AM-5PM we don't alert. + # If outside 10AM-5PM we don't run the test. # if ( hour < 10 || hour > 17 ) puts( "Outside office hours - Not running SSL-Verification of #{@host}" ) |