We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3882aba commit 5a43125Copy full SHA for 5a43125
iroh/examples/transfer.rs
@@ -313,8 +313,14 @@ impl EndpointArgs {
313
314
async fn provide(endpoint: Endpoint, size: u64) -> Result<()> {
315
let endpoint_id = endpoint.id();
316
+ let endpoint_addr = endpoint.addr();
317
- println!("Endpoint id:\n{endpoint_id}\n");
318
+ println!("Endpoint id:\n{endpoint_id}");
319
+ println!("Direct addresses:");
320
+ for addr in &endpoint_addr.direct_addresses {
321
+ println!("\t{addr}");
322
+ }
323
+ println!();
324
325
// accept incoming connections, returns a normal QUIC connection
326
while let Some(incoming) = endpoint.accept().await {
0 commit comments