disabled check_hostname to prevent error message when setting CERT_NONE

This commit is contained in:
Markus Hof 2022-10-04 16:04:12 +02:00
parent 46271c961b
commit 739c093702
1 changed files with 1 additions and 0 deletions

View File

@ -549,6 +549,7 @@ def main(cliargs):
context.options |= ssl.OP_NO_SSLv3
if args.insecure:
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
else:
context.verify_mode = ssl.CERT_OPTIONAL