mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-22 02:13:47 +01:00
Merge pull request #80 from mho21/master
disabled check_hostname to prevent error message when setting CERT_NONE
This commit is contained in:
commit
dddf8432d6
@ -549,6 +549,7 @@ def main(cliargs):
|
|||||||
context.options |= ssl.OP_NO_SSLv3
|
context.options |= ssl.OP_NO_SSLv3
|
||||||
|
|
||||||
if args.insecure:
|
if args.insecure:
|
||||||
|
context.check_hostname = False
|
||||||
context.verify_mode = ssl.CERT_NONE
|
context.verify_mode = ssl.CERT_NONE
|
||||||
else:
|
else:
|
||||||
context.verify_mode = ssl.CERT_OPTIONAL
|
context.verify_mode = ssl.CERT_OPTIONAL
|
||||||
|
Loading…
Reference in New Issue
Block a user