1

到目前为止,我已经尝试过了

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(url);
request.ServicePoint.BindIPEndPointDelegate = delegate
{
    IPAddress ip = IPAddress.Parse("127.0.0.1");
    return new IPEndPoint(ip, 0);
};
request.Method = WebRequestMethods.Ftp.Rename;

问题是FtpWebRequestclass 的功能有限,而 asFtpClient则更加通用。如何将本地绑定IpEndpointFtpClientFluentFTP 库中的类?有什么建议么?

4

1 回答 1

0

这似乎是不可能的。

FluentFTP 让您只选择要使用的 IP 版本InternetProtocolVersions

于 2021-03-16T07:34:13.563 回答