Don't specify usbmuxd provider tag

This commit is contained in:
Jackson Coxson
2025-04-29 15:32:33 -06:00
parent 5da305bbe7
commit 521fe088cd

View File

@@ -39,7 +39,7 @@ pub async fn get_provider(
return Err(format!("Device not found: {e:?}")); return Err(format!("Device not found: {e:?}"));
} }
}; };
Box::new(dev.to_provider(UsbmuxdAddr::from_env_var().unwrap(), 1, label)) Box::new(dev.to_provider(UsbmuxdAddr::from_env_var().unwrap(), label))
} else if host.is_some() && pairing_file.is_some() { } else if host.is_some() && pairing_file.is_some() {
let host = match IpAddr::from_str(host.unwrap()) { let host = match IpAddr::from_str(host.unwrap()) {
Ok(h) => h, Ok(h) => h,
@@ -80,7 +80,7 @@ pub async fn get_provider(
if devs.is_empty() { if devs.is_empty() {
return Err("No devices connected!".to_string()); return Err("No devices connected!".to_string());
} }
Box::new(devs[0].to_provider(UsbmuxdAddr::from_env_var().unwrap(), 0, label)) Box::new(devs[0].to_provider(UsbmuxdAddr::from_env_var().unwrap(), label))
}; };
Ok(provider) Ok(provider)
} }