nightman68 commented on code in PR #477:
URL: https://github.com/apache/mina-sshd/pull/477#discussion_r1529260685


##########
sshd-core/src/main/java/org/apache/sshd/client/SshClient.java:
##########
@@ -683,8 +683,11 @@ protected List<HostConfigEntry> parseProxyJumps(String 
proxyJump, AttributeRepos
             String host = uri.getHost();
             int port = uri.getPort();
             String userInfo = uri.getUserInfo();
-            HostConfigEntry entry = resolveHost(userInfo, host, port, context, 
null);
-            jumps.add(entry);
+            HostConfigEntry entry = null;
+            do {
+                entry = resolveHost(userInfo, host, port, context, null);
+                jumps.add(entry);
+            } while((host = entry.getProxyJump()) != null);

Review Comment:
   1. My tests were working like I posted. Using the jumps in reverse oder was 
not working.
   2. I have not tested this. I assumed that people will use scheme 1 or 2, a 
mix - I don't know.
   
   May be this solution is better than nothing?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to