Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
John Smith
gajim
Commits
95a3b992
Commit
95a3b992
authored
13 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
plugin_installer. use TLS connection. fixes #7024
parent
188950f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/plugin_installer/plugin_installer.py
+4
-2
4 additions, 2 deletions
plugins/plugin_installer/plugin_installer.py
with
4 additions
and
2 deletions
plugins/plugin_installer/plugin_installer.py
+
4
−
2
View file @
95a3b992
...
@@ -82,8 +82,9 @@ class PluginInstaller(GajimPlugin):
...
@@ -82,8 +82,9 @@ class PluginInstaller(GajimPlugin):
def
check_update
(
self
):
def
check_update
(
self
):
def
_run
():
def
_run
():
to_update
=
[]
to_update
=
[]
con
=
ftplib
.
FTP
(
ftp
.
server
)
con
=
ftplib
.
FTP
_TLS
(
ftp
.
server
)
con
.
login
()
con
.
login
()
con
.
prot_p
()
con
.
cwd
(
'
plugins
'
)
con
.
cwd
(
'
plugins
'
)
plugins_dirs
=
con
.
nlst
()
plugins_dirs
=
con
.
nlst
()
for
dir_
in
plugins_dirs
:
for
dir_
in
plugins_dirs
:
...
@@ -393,8 +394,9 @@ class Ftp(threading.Thread):
...
@@ -393,8 +394,9 @@ class Ftp(threading.Thread):
try
:
try
:
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
gobject
.
idle_add
(
self
.
progressbar
.
set_text
,
_
(
'
Connecting to server
'
))
_
(
'
Connecting to server
'
))
self
.
ftp
=
ftplib
.
FTP
(
self
.
server
)
self
.
ftp
=
ftplib
.
FTP
_TLS
(
self
.
server
)
self
.
ftp
.
login
()
self
.
ftp
.
login
()
self
.
ftp
.
prot_p
()
self
.
ftp
.
cwd
(
'
plugins
'
)
self
.
ftp
.
cwd
(
'
plugins
'
)
if
not
self
.
remote_dirs
:
if
not
self
.
remote_dirs
:
self
.
plugins_dirs
=
self
.
ftp
.
nlst
()
self
.
plugins_dirs
=
self
.
ftp
.
nlst
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment