ssl_check_cert option does not have to be given
authorRalf Jung <post@ralfj.de>
Sat, 11 Jul 2015 14:06:58 +0000 (16:06 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 11 Jul 2015 14:06:58 +0000 (16:06 +0200)
client-scripts/dyn-ns-client

index 5006fbddc5c5d386373280e05ea708aa12af6e8b..78a68541d9905b082028342a24576ff12b6c0f50 100755 (executable)
@@ -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: