From fa678a28ce54267a4a20df52a514043a9b327406 Mon Sep 17 00:00:00 2001 From: 080h <47191591+080h@users.noreply.github.com> Date: Tue, 5 May 2020 19:22:43 -0400 Subject: [PATCH] Enabled sni in jetforce_diagnostics.py --- jetforce_diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetforce_diagnostics.py b/jetforce_diagnostics.py index c9624a7..0012835 100755 --- a/jetforce_diagnostics.py +++ b/jetforce_diagnostics.py @@ -141,7 +141,7 @@ class BaseCheck: with socket.create_connection( (self.args.host, self.args.port), timeout=5 ) as sock: - with context.wrap_socket(sock) as ssock: + with context.wrap_socket(sock, server_hostname = self.netloc) as ssock: yield ssock def make_request(self, url: str) -> GeminiResponse: