Skip to content

Commit

Permalink
Merge pull request #80 from mho21/master
Browse files Browse the repository at this point in the history
disabled check_hostname to prevent error message when setting CERT_NONE
  • Loading branch information
martialblog authored Oct 4, 2022
2 parents 46271c9 + 739c093 commit dddf843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions check_http_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dddf843

Please sign in to comment.