You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/12/03 12:55:00 UTC

[jira] [Updated] (NET-711) Add FTP option to toggle use of return host like CURL

     [ https://issues.apache.org/jira/browse/NET-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated NET-711:
--------------------------------
    Description: 
Apache Commons Net's FTP client trusts the host from {{PASV}} response by default.

Make the default false to ignore such hosts.

To restore the pre-3.9.0 behavior, either:
 * Set the new system property to {{org.apache.commons.net.ftp.ipAddressFromPasvResponse}} to {{{}true{}}}.
 * Call {{FTPClient#setIpAddressFromPasvResponse(true);}}

  was:
Make the default false to ignore such hosts.

To restore the pre-3.9.0 behavior, either:
 * Set the new system property to {{org.apache.commons.net.ftp.ipAddressFromPasvResponse}} to {{{}true{}}}.
 * Call {{FTPClient#setIpAddressFromPasvResponse(true);}}


> Add FTP option to toggle use of return host like CURL
> -----------------------------------------------------
>
>                 Key: NET-711
>                 URL: https://issues.apache.org/jira/browse/NET-711
>             Project: Commons Net
>          Issue Type: New Feature
>          Components: FTP
>            Reporter: Gary D. Gregory
>            Priority: Major
>             Fix For: 3.9.0
>
>
> Apache Commons Net's FTP client trusts the host from {{PASV}} response by default.
> Make the default false to ignore such hosts.
> To restore the pre-3.9.0 behavior, either:
>  * Set the new system property to {{org.apache.commons.net.ftp.ipAddressFromPasvResponse}} to {{{}true{}}}.
>  * Call {{FTPClient#setIpAddressFromPasvResponse(true);}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)