Tunnel listens on all interfaces

This commit is contained in:
Erik 2023-05-02 14:14:35 +02:00
parent ddc838f2f3
commit e2dae53701

View File

@ -211,7 +211,7 @@ enum ProxyControlMessage {
} }
async fn add_proxy(in_port: u16, control: Receiver<ProxyControlMessage>) -> anyhow::Result<()> { async fn add_proxy(in_port: u16, control: Receiver<ProxyControlMessage>) -> anyhow::Result<()> {
let listener = TcpListener::bind(("127.0.0.1", in_port)).await?; let listener = TcpListener::bind(("0.0.0.0", in_port)).await?;
tracing::info!("proxying port {in_port} to {:?}", *control.borrow()); tracing::info!("proxying port {in_port} to {:?}", *control.borrow());