解决外网环境上传失败问题

This commit is contained in:
zzh
2022-03-24 21:00:02 +08:00
parent c56fb05dee
commit 922da46aff
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
<h1>FTP数据备份工具</h1> <h1>FTP数据备份工具</h1>
使用步骤: 使用步骤:
1、TsFTP目录放入解释器所在目录的funcext中,更新替换plugin\FileMgr.dll
1、TsFTP目录放入解释器所在目录的funcext中; 1、TsFTP目录放入解释器所在目录的funcext中;
2、(可选)修改默认配置信息:TsFTP\TsFTPBackupConfig.tsf 2、(可选)修改默认配置信息:TsFTP\TsFTPBackupConfig.tsf
3、参考examples\example1.tsl编写备份脚本; 3、参考examples\example1.tsl编写备份脚本;
4、(可选)添加备份脚本的定时调度。 4、(可选)添加备份脚本的定时调度。
注:确保plugin\FileMgr.dll为20220110及以后的版本,否则需更新或临时替换。
+1
View File
@@ -80,6 +80,7 @@ Type TsFTPBackup = Class
ftpObj.Username := username; ftpObj.Username := username;
ftpObj.Password := password; ftpObj.Password := password;
ftpObj.UseTLS := true; ftpObj.UseTLS := true;
ftpObj.Passive := 1;
ftpObj.Port := port; ftpObj.Port := port;
try try
ftpObj.connect(); ftpObj.connect();