We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae70baa commit 7287e0aCopy full SHA for 7287e0a
rfc5424logging/transport.py
@@ -90,6 +90,9 @@ def open(self):
90
context = ssl.create_default_context(
91
purpose=ssl.Purpose.SERVER_AUTH, cafile=self.tls_ca_bundle
92
)
93
+ # copied from https://github.com/jobec/rfc5424-logging-handler/pull/39
94
+ # if/when this PR gets merged we should use the pypi provided rfc5424-logging-handler package
95
+ context.check_hostname = self.tls_verify
96
context.verify_mode = ssl.CERT_REQUIRED if self.tls_verify else ssl.CERT_NONE
97
server_hostname, _ = self.address
98
if self.tls_client_cert:
0 commit comments