bolcom / libunftp

Extensible, async, cloud orientated FTP(S) server library and the core of unFTP: https://github.com/bolcom/unFTP. Follow up and talk to us on https://t.me/unftp
Apache License 2.0
182 stars 33 forks source link

Add option to enable active or passive mode #458

Closed hannesdejager closed 1 year ago

hannesdejager commented 1 year ago

This adds functionality to libunftp to disable either Active Mode or Passive Mode or have both enabled. The default is to have only Passive mode (PASV) enabled since active mode is older and considered less secure.

If a client connects and uses PORT or PASV when it is disabled we return FTP code 502 (command not implemented)