Mercurial > libervia-desktop-kivy
diff cagou/core/cagou_main.py @ 281:ef77423ce500
core: store tls_validation flag in host and use if for file upload.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Mar 2019 07:11:09 +0100 |
parents | b0461363bc65 |
children | 1b835bcfa663 |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Wed Mar 20 09:29:44 2019 +0100 +++ b/cagou/core/cagou_main.py Mon Mar 25 07:11:09 2019 +0100 @@ -429,10 +429,11 @@ self._visible_widgets = {} # visible widgets by classes self.version = C.APP_VERSION # will be replaced by getVersion() - if C.bool(config.getConfig(main_config, - C.CONFIG_SECTION, - 'no_certificate_validation', - C.BOOL_FALSE)): + self.tls_validation = not C.bool(config.getConfig(main_config, + C.CONFIG_SECTION, + 'no_certificate_validation', + C.BOOL_FALSE)) + if not self.tls_validation: from cagou.core import patches patches.apply() log.warning(u"SSL certificate validation is disabled, this is unsecure!")