From bfe297e756ef9c87187fed990db63aa9427dbc48 Mon Sep 17 00:00:00 2001 From: Milan Stute Date: Thu, 9 Jan 2020 10:13:58 +0100 Subject: [PATCH] Suppress LGTM false positive --- opendrop/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendrop/config.py b/opendrop/config.py index 544a249..b000925 100644 --- a/opendrop/config.py +++ b/opendrop/config.py @@ -121,7 +121,7 @@ class AirDropConfig: stderr=subprocess.PIPE) def get_ssl_context(self): - ctx = ssl.SSLContext(ssl.PROTOCOL_TLS) + ctx = ssl.SSLContext(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)