pytogo / portforward

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

Bind to 0.0.0.0 #38

Closed SuperTyrael closed 4 months ago

SuperTyrael commented 4 months ago

portforward version: latest Python version: 3.12 Operating System: Linux

Description

Hi, is there any way to bind to 0.0.0.0? Since I find forwarder bind to 127.0.0.1 by default. I need the function to build a jump server.

What I Did

pip install portforward
corka149 commented 4 months ago

Hi @SuperTyrael . This looks doable. I am a bit short on time but will start soon.

corka149 commented 4 months ago

The feature was added and released as version 0.6.2. The IP address can be configured with the parameter bind_ip.