Fix support for non-standard FTP ports.

This commit is contained in:
Bastian Kleineidam 2010-03-09 07:49:05 +01:00
parent 60a1b5c528
commit c88791b815
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
5.3 "" (released xx.xx.2010)
Fixes:
- ftp: fix support for FTP ports other than the default.
5.2 "11:14" (released 7.3.2010)
Fixes:

View file

@ -95,7 +95,8 @@ class FtpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
self.url_connection = ftplib.FTP()
if log.is_debug(LOG_CHECK):
self.url_connection.set_debuglevel(1)
self.url_connection.connect(host)
host, port = proxysupport.parse_host_port(host)
self.url_connection.connect(host, port)
if _user is None:
self.url_connection.login()
elif _password is None: