mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix bug
This commit is contained in:
parent
4ed32622cb
commit
9d563648b7
@ -3,10 +3,11 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.8.2.M1 (2022-05-16)
|
# 5.8.2.M1 (2022-05-18)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
|
* 【extra 】 修复SshjSftp初始化未能代入端口配置问题(issue#2333@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ public class SshjSftp extends AbstractFtp {
|
|||||||
this.ssh = new SSHClient();
|
this.ssh = new SSHClient();
|
||||||
ssh.addHostKeyVerifier(new PromiscuousVerifier());
|
ssh.addHostKeyVerifier(new PromiscuousVerifier());
|
||||||
try {
|
try {
|
||||||
ssh.connect(ftpConfig.getHost());
|
ssh.connect(ftpConfig.getHost(), ftpConfig.getPort());
|
||||||
ssh.authPassword(ftpConfig.getUser(), ftpConfig.getPassword());
|
ssh.authPassword(ftpConfig.getUser(), ftpConfig.getPassword());
|
||||||
ssh.setRemoteCharset(ftpConfig.getCharset());
|
ssh.setRemoteCharset(ftpConfig.getCharset());
|
||||||
this.sftp = ssh.newSFTPClient();
|
this.sftp = ssh.newSFTPClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user