-
Notifications
You must be signed in to change notification settings - Fork 75
session.forward_listen_ex bound_port access #63
New issue
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
Comments
Hi there, Thanks for the interest and report. Yes, it looks like that function should return port as well in a tuple and not take PR is welcome. Can change the existing function, don't make a new one please. Changing the API while in |
Hello @pkittenis - that sounds fine. The modifications to the .pyx file went smoothly, but building things again - what are the instructions? I am trying the following to test locally, but seems I am missing something.
|
There are instructions on the contribution guide. Broadly:
Best not to change env variables from their defaults unless sure what that means - particularly
|
Returns bound_port for forward_listen_ex
Here's my first attempt at making this work. @pkittenis |
When calling forward_listen_ex the third parameter is "bound_port" which is passed by reference in the pyx file to libssh2
With python not having pointers to int values, how would one get access to that resulting port value?
I have tried
And the forward is created, but bound_port is not updated.
I could add a PR for a forward_listen_ex2 which returns the tuple of the port and Listener? Or is there a way to do this?
The text was updated successfully, but these errors were encountered: