Guichaguri / MinimalFTP

A lightweight, simple FTP server. Pure Java, no dependencies.
Apache License 2.0
160 stars 45 forks source link

Passive mode port range configuration #4

Closed fatihpense closed 5 years ago

fatihpense commented 6 years ago

Hello thanks for the nice library. Is there a way to specify passive port range?

Regards, Fatih

Guichaguri commented 5 years ago

This can't be implemented at the moment. I initialize passive servers using the port 0, as documented:

A port number of 0 means that the port number is automatically allocated, typically from an ephemeral port range.

Unless you control port allocations manually, there's no other way to implement a port range.

fatihpense commented 5 years ago

I see Guichaguri, thank you for the response. You can close the issue if you want. Regards, Fatih