changeset 3507:375449da79f6

comp file sharing: fix port type: when port was retrieved from config, it was a string instead of a int
author Goffi <goffi@goffi.org>
date Thu, 22 Apr 2021 18:18:09 +0200
parents 943de4f9ce50
children 9d9fb871a75c
files sat/plugins/plugin_comp_file_sharing.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_file_sharing.py	Thu Apr 22 18:17:15 2021 +0200
+++ b/sat/plugins/plugin_comp_file_sharing.py	Thu Apr 22 18:18:09 2021 +0200
@@ -362,8 +362,8 @@
             "XEP-0329_parseResult_directory",
             self._getDirectoryMetadataElts)
         self.files_path = self.host.getLocalPath(None, C.FILES_DIR, profile=False)
-        self.http_port = self.host.memory.getConfig(
-            'component file_sharing', 'http_upload_port', 8888)
+        self.http_port = int(self.host.memory.getConfig(
+            'component file_sharing', 'http_upload_port', 8888))
         connection_type = self.host.memory.getConfig(
             'component file_sharing', 'http_upload_connection_type', 'https')
         if connection_type not in ('http', 'https'):