diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/axum/axum-hello-world/src/main.rs | 4 | ||||
| -rw-r--r-- | examples/hyper/hyper-http-hs-example/src/main.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/axum/axum-hello-world/src/main.rs b/examples/axum/axum-hello-world/src/main.rs index 477a4a912..ef90dbcf7 100644 --- a/examples/axum/axum-hello-world/src/main.rs +++ b/examples/axum/axum-hello-world/src/main.rs @@ -9,7 +9,7 @@ use hyper_util::server; use tower::Service; use arti_client::{TorClient, TorClientConfig}; -use safelog::sensitive; +use safelog::{sensitive, DisplayRedacted as _}; use tor_cell::relaycell::msg::Connected; use tor_hsservice::config::OnionServiceConfigBuilder; use tor_hsservice::StreamRequest; @@ -43,7 +43,7 @@ async fn main() { .unwrap(); let (service, request_stream) = client.launch_onion_service(svc_cfg).unwrap(); - println!("{}", service.onion_address().unwrap()); + println!("{}", service.onion_address().unwrap().display_unredacted()); // Wait until the service is believed to be fully reachable. eprintln!("waiting for service to become fully reachable"); diff --git a/examples/hyper/hyper-http-hs-example/src/main.rs b/examples/hyper/hyper-http-hs-example/src/main.rs index c99575b9f..3eac14fdb 100644 --- a/examples/hyper/hyper-http-hs-example/src/main.rs +++ b/examples/hyper/hyper-http-hs-example/src/main.rs @@ -10,7 +10,7 @@ use hyper_util::rt::TokioIo; use tokio_util::sync::CancellationToken; use arti_client::{TorClient, TorClientConfig}; -use safelog::sensitive; +use safelog::{sensitive, DisplayRedacted}; use tor_cell::relaycell::msg::Connected; use tor_hsservice::config::OnionServiceConfigBuilder; use tor_hsservice::StreamRequest; @@ -78,7 +78,7 @@ async fn main() { } eprintln!( "ready to serve connections via {}", - service.onion_address().unwrap() + service.onion_address().unwrap().display_unredacted() ); let stream_requests = tor_hsservice::handle_rend_requests(request_stream) |
