projects
/
dyn-nsupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ssl_check_cert option does not have to be given
[dyn-nsupdate.git]
/
client-scripts
/
dyn-ns-client
diff --git
a/client-scripts/dyn-ns-client
b/client-scripts/dyn-ns-client
index 5006fbddc5c5d386373280e05ea708aa12af6e8b..78a68541d9905b082028342a24576ff12b6c0f50 100755
(executable)
--- 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):
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:
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
return context
else: