Skip to content
Snippets Groups Projects
Commit 95a3b992 authored by Dicson's avatar Dicson
Browse files

plugin_installer. use TLS connection. fixes #7024

parent 188950f4
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,9 @@ class PluginInstaller(GajimPlugin):
def check_update(self):
def _run():
to_update = []
con = ftplib.FTP(ftp.server)
con = ftplib.FTP_TLS(ftp.server)
con.login()
con.prot_p()
con.cwd('plugins')
plugins_dirs = con.nlst()
for dir_ in plugins_dirs:
......@@ -393,8 +394,9 @@ class Ftp(threading.Thread):
try:
gobject.idle_add(self.progressbar.set_text,
_('Connecting to server'))
self.ftp = ftplib.FTP(self.server)
self.ftp = ftplib.FTP_TLS(self.server)
self.ftp.login()
self.ftp.prot_p()
self.ftp.cwd('plugins')
if not self.remote_dirs:
self.plugins_dirs = self.ftp.nlst()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment