【发布时间】:2021-03-10 09:06:19
【问题描述】:
到目前为止,我已经尝试过了
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 更通用。如何在 FluentFTP 库中将本地 IpEndpoint 绑定到 FtpClient 类?有什么建议吗?
【问题讨论】:
标签: c# ftp ftpwebrequest fluentftp