Merge pull request #80 from mho21/master

disabled check_hostname to prevent error message when setting CERT_NONE
This commit is contained in:
Markus Opolka 2022-10-04 16:26:06 +02:00 committed by GitHub
commit dddf8432d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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