mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add bindRemotePort
This commit is contained in:
@@ -236,6 +236,7 @@ public class JschUtil {
|
||||
* @param port host上的端口
|
||||
* @return 成功与否
|
||||
* @throws JschRuntimeException 端口绑定失败异常
|
||||
* @since 5.4.2
|
||||
*/
|
||||
public static boolean bindRemotePort(Session session, int bindPort, String host, int port) throws JschRuntimeException {
|
||||
if (session != null && session.isConnected()) {
|
||||
|
Reference in New Issue
Block a user