[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev FTP_PASSIVE problem and patch

From: Klaus Weide
Subject: lynx-dev FTP_PASSIVE problem and patch
Date: Fri, 19 May 2000 22:55:25 -0500 (CDT)

With FTP_PASSIVE:TRUE, there is a problem accessing FTP servers
with multiple DNS addresses.  As an example, try

The following patch is so far completely untested, but looks obvious;
note that the string constructed in 'command' wasn't being used
at all.

* In passive ftp mode (FTP_PASSIVE:TRUE), use the IP address from
  the server's response for the data connection, rather than doing
  another lookup of the hostname.

Please test before using.


--- /home/lynxdev/HTFTP.c.~1~   Fri May 19 22:29:47 2000
+++ /home/lynxdev/HTFTP.c       Fri May 19 22:31:48 2000
@@ -2920,7 +2920,7 @@
            sprintf(command, "ftp://%d.%d.%d.%d:%d/";,
                    h0, h1, h2, h3, passive_port);
-           status = HTDoConnect(name, "FTP", passive_port, &data_soc);
+           status = HTDoConnect(command, "FTP data", passive_port, &data_soc);
            if (status < 0) {
                (void) HTInetStatus(gettext("connect for data"));

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]