commons-net
commons-net copied to clipboard
[NET-738] Do not try to resolve ip of remote address for passive mode if the FTP Server running behind a Proxy.
Hello,
As we described in the ticket, FTP Client tries to resolve the IP address of the remove host for the Passive Connection. However this attempt can never work if the FTP Server is running behind a proxy outside of the network, therefore if there is a Proxy Configured in between, it is better to rely on the address delivered by the Server.
I created a docker enviroment to test this by putting the FTP Server and PROXY into one docker network such as ftp-server-network and our client with PROXY in another network such as ftp-client-network. After the fix client could list the files from the FTP Server behind the proxy.