Commit cbf59930 authored by Matija Obreza's avatar Matija Obreza
Browse files

Don't start FTP if port < 1

parent 2a51bef3
......@@ -123,6 +123,11 @@ public class RepositoryFtpServer implements InitializingBean, DisposableBean {
}
public void afterPropertiesSet() throws FtpException, UnknownHostException {
if (this.ftpPort < 1) {
LOG.warn("FTP server not started, port={}", ftpPort);
return;
}
FtpServerFactory serverFactory = new FtpServerFactory();
serverFactory.setUserManager(userManager);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment