有没有办法将本地 IPEndPoint 绑定到 FluentFTP 库中的 FtpClient 对象?

问题描述

到目前为止我已经尝试过这个

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;

问题是 FtpWebRequest 类的功能有限,而 FtpClient功能更丰富。如何将本地 IpEndpoint 绑定到 FluentFTP 库中的 FtpClient 类?有什么建议吗?

解决方法

这似乎是不可能的。

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