avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver FtpConnection.java
Date Fri, 08 Mar 2002 06:36:00 GMT
rana_b      02/03/07 22:36:00

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver
                        FtpConnection.java
  Log:
  multihome support
  
  Revision  Changes    Path
  1.8       +4 -0      jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/FtpConnection.java
  
  Index: FtpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/FtpConnection.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FtpConnection.java	6 Mar 2002 13:54:40 -0000	1.7
  +++ FtpConnection.java	8 Mar 2002 06:36:00 -0000	1.8
  @@ -832,6 +832,10 @@
           mDataCon.setPasvCommand();
           
           InetAddress servAddr = mDataCon.getInetAddress();
  +        if(servAddr == null) {
  +            servAddr = mCfg.getSelfAddress();
  +        }        
  +
           int servPort = mDataCon.getPort();
           
           String addrStr = servAddr.getHostAddress().replace( '.', ',' ) + ',' + (servPort>>8)
+ ',' + (servPort&0xFF);
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message