mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
change setRemoteVerificationEnabled
This commit is contained in:
parent
0665c4ed44
commit
6b073a5788
@ -8,6 +8,7 @@
|
||||
### 🐣新特性
|
||||
* 【http 】 HttpUtil增加closeCookie方法
|
||||
* 【core 】 NumberUtil增加方法decimalFormat重载(issue#I3OSA2@Gitee)
|
||||
* 【extra 】 Ftp的remoteVerificationEnabled改为false(issue#I3OSA2@Gitee)
|
||||
### 🐞Bug修复
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
@ -175,6 +175,9 @@ public class Ftp extends AbstractFtp {
|
||||
*/
|
||||
public Ftp init(FtpConfig config, FtpMode mode) {
|
||||
final FTPClient client = new FTPClient();
|
||||
// issue#I3O81Y@Gitee
|
||||
client.setRemoteVerificationEnabled(false);
|
||||
|
||||
final Charset charset = config.getCharset();
|
||||
if (null != charset) {
|
||||
client.setControlEncoding(charset.toString());
|
||||
@ -190,6 +193,7 @@ public class Ftp extends AbstractFtp {
|
||||
client.configure(conf);
|
||||
}
|
||||
|
||||
// connect
|
||||
try {
|
||||
// 连接ftp服务器
|
||||
client.connect(config.getHost(), config.getPort());
|
||||
|
Loading…
x
Reference in New Issue
Block a user