We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found a bug that Remote Port Forwardings are mixed, although it's remote server is different from each other.
A method that provides Local Port Forwarding checks a Session instance.
PortWatcher.java static String[] getPortForwarding(Session session){ java.util.Vector foo=new java.util.Vector(); synchronized(pool){ for(int i=0; i<pool.size(); i++){ PortWatcher p=(PortWatcher)(pool.elementAt(i)); if(p.session==session){ foo.addElement(p.lport+":"+p.host+":"+p.rport); } } } String[] bar=new String[foo.size()]; for(int i=0; i<foo.size(); i++){ bar[i]=(String)(foo.elementAt(i)); } return bar; }
But a method that provides Remote Port Forwardings DO NOT CHECK a Session instance.
ChannelForwardedTCPIP.java static String[] getPortForwarding(Session session){ Vector foo = new Vector(); synchronized(pool){ for(int i=0; i<pool.size(); i++){ Config config = (Config)(pool.elementAt(i)); if(config instanceof ConfigDaemon) foo.addElement(config.allocated_rport+":"+config.target+":"); else foo.addElement(config.allocated_rport+":"+config.target+":"+((ConfigLHost)config).lport); } } String[] bar=new String[foo.size()]; for(int i=0; i<foo.size(); i++){ bar[i]=(String)(foo.elementAt(i)); } return bar; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found a bug that Remote Port Forwardings are mixed,
although it's remote server is different from each other.
A method that provides Local Port Forwarding checks a Session instance.
But a method that provides Remote Port Forwardings DO NOT CHECK a Session instance.
The text was updated successfully, but these errors were encountered: