Skip to content

Commit e2f49af

Browse files
authored
SESSION_SSL_MINIMUM_TLS (#138)
1 parent 74a6fec commit e2f49af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tnz/tnz.py

+4
Original file line numberDiff line numberDiff line change
@@ -3747,6 +3747,10 @@ def __create_context(self, verifycert=None):
37473747
else:
37483748
context.verify_mode = ssl.CERT_NONE
37493749

3750+
minimum_version = getenv("SESSION_SSL_MINIMUM_TLS")
3751+
if minimum_version == "1.1":
3752+
context.minimum_version = ssl.TLSVersion.TLSv1_1
3753+
37503754
return context
37513755

37523756
def __erase(self, saddr, eaddr):

0 commit comments

Comments
 (0)