comp file sharing: fix port type:
when port was retrieved from config, it was a string instead of a int
This commit is contained in:
parent
3768e8bb4d
commit
a7704f4da1
1 changed files with 2 additions and 2 deletions
|
|
@ -362,8 +362,8 @@ class FileSharing:
|
|||
"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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue