Bläddra i källkod

Fix check_https

new-scoring
aeris 2 år sedan
förälder
incheckning
cdf9f62534
1 ändrade filer med 1 tillägg och 10 borttagningar
  1. 1
    10
      bin/check_https.rb

+ 1
- 10
bin/check_https.rb Visa fil

@@ -3,13 +3,4 @@ $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
3 3
 require 'rubygems'
4 4
 require 'bundler/setup'
5 5
 require 'cryptcheck'
6
-
7
-name = ARGV[0] || 'index'
8
-file = ::File.join 'output', "#{name}.yml"
9
-if ::File.exist? file
10
-	::CryptCheck::Logger.level = ENV['LOG'] || :none
11
-	::CryptCheck::Tls::Https.analyze_file file, "output/#{name}.html"
12
-else
13
-	::CryptCheck::Logger.level = ENV['LOG'] || :info
14
-	::CryptCheck::Tls::Https.analyze ARGV[0], (ARGV[1] || 443)
15
-end
6
+::CryptCheck::Tls::Https::Host.new ARGV[0], ARGV.fetch(1, 443)

Laddar…
Avbryt
Spara