changeset 643:117bcf24add2

2004-12-12 Brian Masney <masneyb@gftp.org> * lib/rfc959.c - renamed pasv_behind_router option to ignore_pasv_address. This is a better explanation of what it does
author masneyb
date Sun, 12 Dec 2004 12:09:56 +0000
parents b9e8b22bf3b1
children 10bc29d6252c
files ChangeLog lib/rfc959.c
diffstat 2 files changed, 13 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Dec 12 12:00:29 2004 +0000
+++ b/ChangeLog	Sun Dec 12 12:09:56 2004 +0000
@@ -1,4 +1,7 @@
 2004-12-12 Brian Masney <masneyb@gftp.org>
+	* lib/rfc959.c - renamed pasv_behind_router option to
+	ignore_pasv_address. This is a better explanation of what it does
+
 	* lib/rfc959.c - added pasv_behind_router option. If this is enabled,
 	then the IP address that is in the PASV response will be ignored.
 	Instead the IP address of the remote host will be used. This is a patch
@@ -3149,7 +3152,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.378 2004/12/12 12:00:29 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.379 2004/12/12 12:09:56 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/rfc959.c	Sun Dec 12 12:00:29 2004 +0000
+++ b/lib/rfc959.c	Sun Dec 12 12:09:56 2004 +0000
@@ -66,16 +66,16 @@
    N_("This specifies how your proxy server expects us to log in. You can specify a 2 character replacement string prefixed by a % that will be replaced with the proper data. The first character can be either p for proxy or h for the host of the FTP server. The second character can be u (user), p (pass), h (host), o (port) or a (account). For example, to specify the proxy user, you can you type in %pu"), 
    GFTP_PORT_ALL, NULL},
 
+  {"ignore_pasv_address", N_("Ignore PASV address"), 
+   gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 
+   GFTP_CVARS_FLAGS_SHOW_BOOKMARK,
+   N_("If this is enabled, then the remote FTP server's PASV IP address field will be ignored and the host's IP address will be used instead. This is often needed for routers giving their internal rather then their external IP address in a PASV reply."),
+   GFTP_PORT_ALL, NULL},
   {"passive_transfer", N_("Passive file transfers"), 
    gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 
    GFTP_CVARS_FLAGS_SHOW_BOOKMARK,
    N_("If this is enabled, then the remote FTP server will open up a port for the data connection. If you are behind a firewall, you will need to enable this. Generally, it is a good idea to keep this enabled unless you are connecting to an older FTP server that doesn't support this. If this is disabled, then gFTP will open up a port on the client side and the remote server will attempt to connect to it."),
    GFTP_PORT_ALL, NULL},
-  {"pasv_behind_router", N_("PASV Host Behind Router"), 
-   gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 
-   GFTP_CVARS_FLAGS_SHOW_BOOKMARK,
-   N_("If this is enabled, then the remote FTP server's PASV IP address field will be ignored and the host's IP address will be used instead. This is often needed for routers giving their internal rather then their external IP address in a PASV reply."),
-   GFTP_PORT_ALL, NULL},
   {"resolve_symlinks", N_("Resolve Remote Symlinks (LIST -L)"), 
    gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 
    GFTP_CVARS_FLAGS_SHOW_BOOKMARK,
@@ -628,7 +628,7 @@
 rfc959_ipv4_data_connection_new (gftp_request * request)
 {
   struct sockaddr_in data_addr;
-  intptr_t pasv_behind_router;
+  intptr_t ignore_pasv_address;
   char *pos, *pos1, *command;
   intptr_t passive_transfer;
   rfc959_parms * parms;
@@ -702,9 +702,9 @@
 
       memcpy (&data_addr.sin_port, &ad[4], 2);
 
-      gftp_lookup_request_option (request, "pasv_behind_router",
-                                  &pasv_behind_router);
-      if (pasv_behind_router)
+      gftp_lookup_request_option (request, "ignore_pasv_address",
+                                  &ignore_pasv_address);
+      if (ignore_pasv_address)
 	{
 #if defined (HAVE_GETADDRINFO)
           memcpy (&data_addr.sin_addr,