From 8a9bd1f4d5892646dd3b90a6ea1403ea609fbd6e Mon Sep 17 00:00:00 2001 From: Milan Stute Date: Wed, 2 Dec 2020 16:19:40 +0100 Subject: [PATCH] Ignore LGTM false positive (again) --- opendrop/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opendrop/config.py b/opendrop/config.py index b0c85f3..d20f33a 100644 --- a/opendrop/config.py +++ b/opendrop/config.py @@ -155,9 +155,10 @@ class AirDropConfig: ) def get_ssl_context(self): - ctx = ssl.SSLContext( + + ctx = ssl.SSLContext( # lgtm[py/insecure-protocol], TODO see https://github.com/Semmle/ql/issues/2554 ssl.PROTOCOL_TLS - ) # lgtm[py/insecure-protocol], TODO see https://github.com/Semmle/ql/issues/2554 + ) ctx.options |= ssl.OP_NO_TLSv1 # TLSv1.0 is insecure ctx.load_cert_chain(self.cert_file, keyfile=self.key_file) ctx.load_verify_locations(cafile=self.root_ca_file)