elliotchance/sshtunnel

Possibility to specify the Local port of a forwarded Port

rnsc opened this issue · 3 comments

rnsc commented

Hello,

First, thank you for your work, it works perfectly!
I'm using your library to connect to SSH hosts via a tunnel and I was wondering, if it would be possible to specify both the remote and local port for the port forwarding?
For example, forwarding port 443 on remote to local port 8443, instead of a random one that your library picks up?

It'd be great to have a non mandatory parameter for that, so that if not specified, you pick up a random one.

Kind regards,

rnsc

rnsc commented

Hello again @elliotchance

I looked at the code and create a PR.
Let me know if you think it's complying with your standards, I'd be happy to adapt it with your guidance.

Kind regards,

rnsc

rnsc commented

Fixed by #4