pytogo / portforward

Kubernetes Port-Forward Go-Edition For Python
https://portforward.readthedocs.io
MIT License
17 stars 6 forks source link

Allow binding to local port 0 #40

Closed anvilpete closed 3 days ago

anvilpete commented 4 days ago

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

anvilpete commented 4 days ago

@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 commented 3 days ago

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

corka149 commented 3 days ago

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

anvilpete commented 3 days ago

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

corka149 commented 3 days ago

Release is on the way https://github.com/pytogo/portforward/actions/runs/11408006531

corka149 commented 2 days ago

Done