From 6e33cd15ee376bca8fe23b58878522a0caba31e6 Mon Sep 17 00:00:00 2001 From: Jeremy Norris Date: Fri, 27 Aug 2021 06:17:21 -0500 Subject: [PATCH] #52 only return Remote Port Forwardings for the specific Session. --- Readme.md | 1 + .../java/com/jcraft/jsch/ChannelForwardedTCPIP.java | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 0fbbf83c..d7d40cf2 100644 --- a/Readme.md +++ b/Readme.md @@ -92,6 +92,7 @@ As I explained in a [blog post](http://www.matez.de/index.php/2020/06/22/the-fut * ssh-rsa-sha384@ssh.com * ssh-rsa-sha512@ssh.com * Added support for SHA224 to FingerprintHash + * Fixing [#52](https://github.com/mwiede/jsch/issues/52) * [0.1.65](https://github.com/mwiede/jsch/releases/tag/jsch-0.1.65) * Added system properties to allow manipulation of various crypto algorithms used by default * Integrated JZlib, allowing use of zlib@openssh.com & zlib compressions without the need to provide the JZlib jar-file diff --git a/src/main/java/com/jcraft/jsch/ChannelForwardedTCPIP.java b/src/main/java/com/jcraft/jsch/ChannelForwardedTCPIP.java index 8374b8ea..e0c8a357 100644 --- a/src/main/java/com/jcraft/jsch/ChannelForwardedTCPIP.java +++ b/src/main/java/com/jcraft/jsch/ChannelForwardedTCPIP.java @@ -188,10 +188,12 @@ static String[] getPortForwarding(Session session){ synchronized(pool){ for(int i=0; i