mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Don't specify usbmuxd provider tag
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user