Fix deprecation of PROTOCOL_TLS

This commit is contained in:
Markus Opolka 2022-09-09 17:26:23 +02:00
parent 9626fc4464
commit 3a22b712ab

View File

@ -542,7 +542,7 @@ def main(cliargs):
if args.ssl: if args.ssl:
url = "https://%s" % args.host url = "https://%s" % args.host
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.options |= ssl.OP_NO_SSLv2 context.options |= ssl.OP_NO_SSLv2
context.options |= ssl.OP_NO_SSLv3 context.options |= ssl.OP_NO_SSLv3