From c88791b81594e3d580e23f25aa6d54298df3bbe7 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 9 Mar 2010 07:49:05 +0100 Subject: [PATCH] Fix support for non-standard FTP ports. --- doc/changelog.txt | 6 ++++++ linkcheck/checker/ftpurl.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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: