Merge pull request #17 from 080h/sni

Enabled sni in jetforce_diagnostics.py
This commit is contained in:
Michael Lazar 2020-05-05 23:08:40 -04:00 committed by GitHub
commit 2a97095247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: