mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 16:43:11 +00:00
Fix support for non-standard FTP ports.
This commit is contained in:
parent
60a1b5c528
commit
c88791b815
2 changed files with 8 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue