Skip to content
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

Allow binding to local port 0 #40

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Allow binding to local port 0 #40

merged 1 commit into from
Oct 18, 2024

Conversation

anvilpete
Copy link
Contributor

Add a from_port property that contains the actual local port used for the portforward.

Add a from_port property that contains the actual local port used for
the portforward.
@anvilpete
Copy link
Contributor Author

@corka149 Hopefully self-explanatory, but let me know if you'd like to see any changes. This is a really nice Rust<->Python integration, thanks!

@corka149
Copy link
Contributor

Hi @anvilpete awesome Idea! I would like to release this soon.

@corka149
Copy link
Contributor

I wasn't aware how TcpListener is handling 0 as port. That's genius.

@corka149 corka149 merged commit d9ee0ef into pytogo:main Oct 18, 2024
1 check passed
@anvilpete anvilpete deleted the port0 branch October 18, 2024 07:03
@anvilpete
Copy link
Contributor Author

Thanks for the quick merge! A release including this would be really useful.

@corka149
Copy link
Contributor

@corka149
Copy link
Contributor

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants