wesnoth_addon_manager: require at least TLS v1.2 (#7591)

This commit is contained in:
alberic89 2023-05-06 00:12:17 +02:00 committed by GitHub
parent 1ce11239ed
commit 2cb0d97696
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,7 @@ class CampaignClient:
print("Attempting to connect to the server using SSL/TLS",
file=sys.stderr)
self.context = ssl.create_default_context()
self.context.minimum_version = ssl.TLSVersion.TLSv1_2
else:
self.context = None