瀏覽代碼

Fix debug output

master
Aeris 4 年之前
父節點
當前提交
92424828e1
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    1
      lib/cryptcheck/tls/cipher.rb
  2. 1
    0
      lib/cryptcheck/tls/server.rb

+ 1
- 1
lib/cryptcheck/tls/cipher.rb 查看文件

@@ -23,7 +23,7 @@ module CryptCheck

attr_reader :protocol, :name, :size, :dh

def initialize(protocol, cipher, dh)
def initialize(protocol, cipher, dh=nil)
@protocol, @dh = protocol, dh
@name, _, @size = cipher
end

+ 1
- 0
lib/cryptcheck/tls/server.rb 查看文件

@@ -259,6 +259,7 @@ module CryptCheck
Logger.info { "#{Tls.colorize method} / #{cipher.colorize} : Supported#{dh}" }
cipher
rescue TLSException => e
cipher = Cipher.new method, cipher
Logger.debug { "#{Tls.colorize method} / #{cipher.colorize} : Not supported (#{e})" }
nil
end

Loading…
取消
儲存