Hallo !

Sie schrieben am Freitag, den 04. Mïrz 2005:

> With today's prevalence of NAT, I believe that passive FTP should be
> made default.
> 
> On the systems without NAT, both types should work, and on systems
> that use NAT only passive FTP will work.  This makes it the obvious
> choice to be the default.  I believe web browsers have been doing the
> same for a while now.
> 
> What do others think about a switch?  Mauro?


Btw: here's the patch we're using.

--
 Karsten Hopp <[EMAIL PROTECTED]>   GPG 1024D/70ABD02C
 Fingerprint D2D4 3B6B 2DE4 464C A432 210A DFF8 A140 70AB D02C
 Red Hat Deutschland, Hauptstaetter Str.58
 70178 Stuttgart, Tel.+49-711-96437-0, Fax +49-711-96437-111
diff -urN wget-1.8.2/src/init.c wget-1.8.2_save/src/init.c
--- wget-1.8.2/src/init.c       2003-06-25 12:15:56.000000000 +0200
+++ wget-1.8.2_save/src/init.c  2003-06-25 12:15:39.000000000 +0200
@@ -261,6 +261,7 @@
 #endif
   opt.use_robots = 1;
 
+  opt.ftp_pasv = 1;
   opt.remove_listing = 1;
 
   opt.dot_bytes = 1024;
diff -urN wget-1.8.2/src/main.c wget-1.8.2_save/src/main.c
--- wget-1.8.2/src/main.c       2003-06-25 12:15:56.000000000 +0200
+++ wget-1.8.2_save/src/main.c  2003-06-25 12:12:22.000000000 +0200
@@ -213,7 +213,8 @@
 FTP options:\n\
   -nr, --dont-remove-listing   don\'t remove `.listing\' files.\n\
   -g,  --glob=on/off           turn file name globbing on or off.\n\
-       --passive-ftp           use the \"passive\" transfer mode.\n\
+       --passive-ftp           use the \"passive\" transfer mode (default).\n\
+       --active-ftp           use the \"active\" transfer mode.\n\
        --retr-symlinks         when recursing, get linked-to files (not 
dirs).\n\
 \n"), stdout);
   fputs (_("\
@@ -254,6 +255,7 @@
   static struct option long_options[] =
   {
     /* Options without arguments: */
+    { "active-ftp", no_argument, NULL, 181 },
     { "background", no_argument, NULL, 'b' },
     { "backup-converted", no_argument, NULL, 'K' },
     { "continue", no_argument, NULL, 'c' },
@@ -419,6 +421,9 @@
        case 165:
          setval ("randomwait", "on");
          break;
+       case 181:
+         setoptval ("passiveftp", "off");
+         break;
        case 'b':
          setval ("background", "on");
          break;
--- wget-1.9.1/doc/wget.texi.pasv       2004-01-22 20:37:33.000000000 +0100
+++ wget-1.9.1/doc/wget.texi    2004-01-22 20:37:37.000000000 +0100
@@ -1234,11 +1234,19 @@
 system-specific.  This is why it currently works only with Unix @sc{ftp}
 servers (and the ones emulating Unix @code{ls} output).
 
[EMAIL PROTECTED] active ftp
[EMAIL PROTECTED] --active-ftp
+Use the @dfn{active} @sc{ftp} retrieval scheme, in which the server
+initiates the data connection. Firewalls often deny incoming data
+connections, therefore @dfn{passive} @sc{ftp} is the default in this
+version of Wget.
+
 @cindex passive ftp
 @item --passive-ftp
 Use the @dfn{passive} @sc{ftp} retrieval scheme, in which the client
 initiates the data connection.  This is sometimes required for @sc{ftp}
-to work behind firewalls.
+to work behind firewalls. @dfn{passive} @sc{ftp} is the default in this
+version of Wget.
 
 @cindex symbolic links, retrieving
 @item --retr-symlinks

Reply via email to