瀏覽代碼

Fix error in render in case of no TLS

master
Aeris 3 年之前
父節點
當前提交
73d17620b0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      app/workers/check_worker.rb

+ 1
- 0
app/workers/check_worker.rb 查看文件

@@ -10,6 +10,7 @@ class CheckWorker
10 10
 		host    = SimpleIDN.to_ascii host.downcase
11 11
 		result = begin
12 12
 			grade  = self.analyze *(port ? [host, port] : [host])
13
+			raise CryptCheck::Tls::Server::TLSNotAvailableException if grade.is_a? CryptCheck::Tls::TlsNotSupportedGrade
13 14
 			server = grade.server
14 15
 			result = {
15 16
 					key:       key_to_json(server.key),

Loading…
取消
儲存