mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Use device MAC, not host
This commit is contained in:
@@ -81,7 +81,6 @@ clap = { version = "4.5" }
|
||||
plist = { version = "1.7" }
|
||||
ns-keyed-archive = "0.1.2"
|
||||
uuid = "1.16"
|
||||
mac_address = "1.1"
|
||||
|
||||
# When testing the pair binary, creating certificates takes forever
|
||||
[profile.dev.package.idevice]
|
||||
|
||||
@@ -6,7 +6,6 @@ use idevice::{
|
||||
usbmuxd::{Connection, UsbmuxdAddr, UsbmuxdConnection},
|
||||
IdeviceService,
|
||||
};
|
||||
use mac_address::get_mac_address;
|
||||
|
||||
mod common;
|
||||
|
||||
@@ -63,14 +62,10 @@ async fn main() {
|
||||
return;
|
||||
}
|
||||
};
|
||||
let mac_address = get_mac_address()
|
||||
.expect("Failed to get MAC")
|
||||
.expect("No MAC??")
|
||||
.to_string();
|
||||
let id = uuid::Uuid::new_v4().to_string().to_uppercase();
|
||||
|
||||
let mut pairing_file = lockdown_client
|
||||
.pair(id, mac_address, u.get_buid().await.unwrap())
|
||||
.pair(id, u.get_buid().await.unwrap())
|
||||
.await
|
||||
.expect("Failed to pair");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user