Enabled sni in jetforce_diagnostics.py

This commit is contained in:
080h 2020-05-05 19:22:43 -04:00
parent 5e0fd57f93
commit fa678a28ce
1 changed files with 1 additions and 1 deletions

View File

@ -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: