INT-1836 fixed AbstractFtpSessionFactory to actually use 'port' when connecting to FTP server

This commit is contained in:
Oleg Zhurakousky
2011-03-24 07:36:31 -04:00
parent b81f8b12ee
commit 29c2b2a0c1

View File

@@ -145,7 +145,7 @@ public abstract class AbstractFtpSessionFactory<T extends FTPClient> implements
this.postProcessClientBeforeConnect(client);
// Connect
client.connect(host);
client.connect(this.host, this.port);
if (!FTPReply.isPositiveCompletion(client.getReplyCode())) {
throw new MessagingException("Connecting to server [" +