Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
found and fixed by Daniel Hagen
Description
From mail to ftpserver-dev:
"Hi,
in search of a Java FTP Application Server I just stumbled over FTPServer.
After downloading and installing the binaries I encountered the behaviour
that a client could connect to the ftp server but did not even get a login
prompt.
Stepping through the code I discovered the following snippet in
FtpServerSocketFactory:
public ServerSocket createServerSocket() throws Exception {
ServerSocket ssocket = null;
if(m_serverAddress == null)
else { new ServerSocket(m_port, 100, m_serverAddress); }
return ssocket;
}
After changing to:
public ServerSocket createServerSocket() throws Exception {
ServerSocket ssocket = null;
if(m_serverAddress == null) { ssocket = new ServerSocket(m_port, 100); }
else
{ ssocket = new ServerSocket(m_port, 100, m_serverAddress); } return ssocket;
}
it worked like a charm."