We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa8751 commit 29df9e2Copy full SHA for 29df9e2
jupyter_server_proxy/__init__.py
@@ -35,7 +35,7 @@ def load_jupyter_server_extension(nbapp):
35
if serverproxy.https:
36
ssl_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=serverproxy.cafile)
37
ssl_context.load_cert_chain(serverproxy.certfile, serverproxy.keyfile)
38
- ssl_context.check_hostname = False
+ ssl_context.check_hostname = serverproxy.check_hostname
39
ssl_options = ssl_context
40
41
# Set up default handler
jupyter_server_proxy/config.py
@@ -245,3 +245,9 @@ def _host_whitelist_default(self):
245
""",
246
config=True
247
)
248
+
249
+ check_hostname = Bool(
250
+ False,
251
+ help="Whether to check hostname.",
252
+ config=True
253
+ )
0 commit comments