Commit 8574c1aa authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Use cert validation only on Windows for now

parent 488f26e3
......@@ -114,15 +114,14 @@ class PluginInstaller(GajimPlugin):
'\n%s') % plugins_str, on_response_yes=open_update)
def ftp_connect(self):
if sys.version_info >= (3, 4):
if == 'nt':
ctx = ssl.create_default_context()
con = ftplib.FTP_TLS(self.config['ftp_server'], context=ctx)
log.debug('Plugin Server Cert verified')
con = ftplib.FTP_TLS(self.config['ftp_server'])
return con
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment