diff --git a/doc/changelog.txt b/doc/changelog.txt index 9f453940..5698f364 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -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: diff --git a/linkcheck/checker/ftpurl.py b/linkcheck/checker/ftpurl.py index 77a0ac7c..1d578fe9 100644 --- a/linkcheck/checker/ftpurl.py +++ b/linkcheck/checker/ftpurl.py @@ -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: