Print which screenshot protocol is being used in tool

This commit is contained in:
Jackson Coxson
2025-10-20 10:51:52 -06:00
parent c10f4da9f1
commit 779db7ecec

View File

@@ -66,6 +66,7 @@ async fn main() {
}; };
let res = if let Ok(proxy) = CoreDeviceProxy::connect(&*provider).await { let res = if let Ok(proxy) = CoreDeviceProxy::connect(&*provider).await {
println!("Using DVT over CoreDeviceProxy");
let rsd_port = proxy.handshake.server_rsd_port; let rsd_port = proxy.handshake.server_rsd_port;
let adapter = proxy.create_software_tunnel().expect("no software tunnel"); let adapter = proxy.create_software_tunnel().expect("no software tunnel");
@@ -90,6 +91,7 @@ async fn main() {
.await .await
.expect("Failed to take screenshot") .expect("Failed to take screenshot")
} else { } else {
println!("Using screenshotr");
let mut screenshot_client = match ScreenshotService::connect(&*provider).await { let mut screenshot_client = match ScreenshotService::connect(&*provider).await {
Ok(client) => client, Ok(client) => client,
Err(e) => { Err(e) => {