From: Ralf Jung Date: Sat, 11 Jul 2015 14:06:58 +0000 (+0200) Subject: ssl_check_cert option does not have to be given X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/commitdiff_plain/a163f82aa9483c77caf55cf9c857051254306eed ssl_check_cert option does not have to be given --- diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 5006fbd..78a6854 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -29,7 +29,7 @@ VERBOSE_CHANGE = 1 VERBOSE_FULL = 2 def sslContext(config): - if config['DEFAULT']['ssl_check_cert'].lower() in ('0', 'false', 'no'): + if config['DEFAULT'].get('ssl_check_cert', 'yes').lower() in ('0', 'false', 'no'): context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) return context else: