From e2dae5370157e22ededb670aa9cdb5a7745fb448 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 2 May 2023 14:14:35 +0200 Subject: [PATCH] Tunnel listens on all interfaces --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 365a508..2ad49f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,7 +211,7 @@ enum ProxyControlMessage { } async fn add_proxy(in_port: u16, control: Receiver) -> 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());