dfs         2002/09/19 09:23:55

  Modified:    net/src/java/examples ftp.java
  Log:
  Made FTP example use passive mode for transfers so people behind firewalls won't 
wonder why the example isn't working.  Really should add a command line option, but 
this is an example, not a complete program.
  
  Revision  Changes    Path
  1.5       +4 -0      jakarta-commons-sandbox/net/src/java/examples/ftp.java
  
  Index: ftp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/net/src/java/examples/ftp.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ftp.java  12 Apr 2002 04:42:44 -0000      1.4
  +++ ftp.java  19 Sep 2002 16:23:55 -0000      1.5
  @@ -167,6 +167,10 @@
               if (binaryTransfer)
                   ftp.setFileType(FTP.BINARY_FILE_TYPE);
   
  +         // Use passive mode as default because most of us are
  +         // behind firewalls these days.
  +         ftp.enterLocalPassiveMode();
  +
               if (storeFile)
               {
                   InputStream input;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to