Ingo13F commented on issue #309: URL: https://github.com/apache/mina-sshd/issues/309#issuecomment-1441326085
Ah, yes as @tomaswolf already pointed out you could write your own code to handle a SOCKS proxy outside of MINA. He suggested an approach which they used in jGit and which obviously works: In https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/master/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java you can see that they subclass the MINA SshClient, override the "connect" method and "smuggle" the proxy in there. As for the example you posted I'm not sure what to make out of it. I can see a SOCKS proxy is created and is used to read from a java.net.HttpURLConnection. But I don't see how this proxy is used with MINA. But maybe I missed it the code is a bit, uuhmm....hard on the eyes -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
