Pārlūkot izejas kodu

Fix check_https

new-scoring
aeris pirms 2 gadiem
vecāks
revīzija
cdf9f62534
1 mainītis faili ar 1 papildinājumiem un 10 dzēšanām
  1. 1
    10
      bin/check_https.rb

+ 1
- 10
bin/check_https.rb Parādīt failu

@@ -3,13 +3,4 @@ $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
require 'rubygems'
require 'bundler/setup'
require 'cryptcheck'

name = ARGV[0] || 'index'
file = ::File.join 'output', "#{name}.yml"
if ::File.exist? file
::CryptCheck::Logger.level = ENV['LOG'] || :none
::CryptCheck::Tls::Https.analyze_file file, "output/#{name}.html"
else
::CryptCheck::Logger.level = ENV['LOG'] || :info
::CryptCheck::Tls::Https.analyze ARGV[0], (ARGV[1] || 443)
end
::CryptCheck::Tls::Https::Host.new ARGV[0], ARGV.fetch(1, 443)

Notiek ielāde…
Atcelt
Saglabāt