diff cagou/plugins/plugin_wid_chat.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 444ba439530f
children 1b835bcfa663
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py	Wed Mar 20 09:29:44 2019 +0100
+++ b/cagou/plugins/plugin_wid_chat.py	Mon Mar 25 07:11:09 2019 +0100
@@ -627,12 +627,13 @@
                 file_path,
                 "",
                 "",
-                {"ignore_tls_errors": C.BOOL_TRUE},  # FIXME: should not be the default
+                {"ignore_tls_errors": C.boolConst(not G.host.tls_validation)},
                 self.profile,
                 callback = partial(
                     G.host.actionManager,
                     progress_cb = partial(self.fileTransferCb, cleaning_cb=cleaning_cb),
-                    progress_eb = partial(self.fileTransferEb, cleaning_cb=cleaning_cb),               )
+                    progress_eb = partial(self.fileTransferEb, cleaning_cb=cleaning_cb),
+                    )
             )
         elif transfer_type == C.TRANSFER_SEND:
             if self.type == C.CHAT_GROUP: