diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-04 16:58:29 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-04 16:58:29 +0000 |
commit | 27eb43a1b1a23ac3a4c6fc788b4b1ee04291b033 (patch) | |
tree | a15b8e8659cc58ac32da5181564e9341baf48fe9 /lib | |
parent | 564160834c98d4945ebd2ef5dd179ca8359bafb1 (diff) |
Allow SSL-check to be disabled, via "no_ssl_check"
Diffstat (limited to 'lib')
-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}" ) |