diff --git a/flydra-types/src/lib.rs b/flydra-types/src/lib.rs index 740d5f696..b8d143af7 100644 --- a/flydra-types/src/lib.rs +++ b/flydra-types/src/lib.rs @@ -661,7 +661,7 @@ fn expand_unspecified_ip(ip: IpAddr) -> std::io::Result> { } #[cfg(feature = "build-urls")] -fn expand_unspecified_addr(addr: &SocketAddr) -> std::io::Result> { +pub fn expand_unspecified_addr(addr: &SocketAddr) -> std::io::Result> { if addr.ip().is_unspecified() { Ok(expand_unspecified_ip(addr.ip())? .into_iter() diff --git a/strand-cam/src/strand-cam.rs b/strand-cam/src/strand-cam.rs index e0e96c1c3..aa979b9dd 100644 --- a/strand-cam/src/strand-cam.rs +++ b/strand-cam/src/strand-cam.rs @@ -2172,6 +2172,13 @@ where debug!("Strand Cam listening at {listen_addr}, predicted URL: {url}"); } else { info!("Strand Cam listening at {listen_addr}, predicted URL: {url}"); + + if listen_addr.ip().is_unspecified() { + for addr in flydra_types::expand_unspecified_addr(&listen_addr)?.iter() { + info!(" * {addr}"); + } + } + if !flydra_types::is_loopback(&url) { println!("QR code for {url}"); display_qr_url(&format!("{url}"));