mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add bindRemotePort
This commit is contained in:
parent
b7b9f83712
commit
39021446ad
@ -3,11 +3,12 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.4.2 (2020-08-31)
|
# 5.4.2 (2020-09-02)
|
||||||
|
|
||||||
### 新特性
|
### 新特性
|
||||||
* 【core 】 lock放在try外边(pr#1050@Github)
|
* 【core 】 lock放在try外边(pr#1050@Github)
|
||||||
* 【core 】 MailUtil增加错误信息(issue#I1TAKJ@Gitee)
|
* 【core 】 MailUtil增加错误信息(issue#I1TAKJ@Gitee)
|
||||||
|
* 【core 】 JschUtil添加远程转发功能(pr#171@Gitee)
|
||||||
|
|
||||||
### Bug修复#
|
### Bug修复#
|
||||||
* 【core 】 重新整理农历节假日,解决一个pr过来的玩笑导致的问题
|
* 【core 】 重新整理农历节假日,解决一个pr过来的玩笑导致的问题
|
||||||
|
@ -236,6 +236,7 @@ public class JschUtil {
|
|||||||
* @param port host上的端口
|
* @param port host上的端口
|
||||||
* @return 成功与否
|
* @return 成功与否
|
||||||
* @throws JschRuntimeException 端口绑定失败异常
|
* @throws JschRuntimeException 端口绑定失败异常
|
||||||
|
* @since 5.4.2
|
||||||
*/
|
*/
|
||||||
public static boolean bindRemotePort(Session session, int bindPort, String host, int port) throws JschRuntimeException {
|
public static boolean bindRemotePort(Session session, int bindPort, String host, int port) throws JschRuntimeException {
|
||||||
if (session != null && session.isConnected()) {
|
if (session != null && session.isConnected()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user