From 93a485c7aa0ba8be9eda0fdda16b41e1dc006a23 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Tue, 12 Dec 2023 10:16:05 +0100 Subject: [PATCH] Fix puffin connecting on the wrong address --- crates/re_tracing/src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/re_tracing/src/server.rs b/crates/re_tracing/src/server.rs index 5c0ab8b89845..9e83d9f624dc 100644 --- a/crates/re_tracing/src/server.rs +++ b/crates/re_tracing/src/server.rs @@ -26,7 +26,7 @@ impl Profiler { fn start_server(&mut self) { crate::profile_function!(); - let bind_addr = format!("0.0.0.0:{PORT}"); + let bind_addr = format!("0.0.0.0:{PORT}"); // Serve on all addresses. self.server = match puffin_http::Server::new(&bind_addr) { Ok(puffin_server) => { re_log::info!( @@ -44,7 +44,7 @@ impl Profiler { fn start_puffin_viewer() { crate::profile_function!(); - let url = format!("0.0.0.0:{PORT}"); + let url = format!("127.0.0.1:{PORT}"); // Connect to localhost. let child = std::process::Command::new("puffin_viewer") .arg("--url") .arg(&url)