Convert port to big endian

This commit is contained in:
Jackson Coxson
2025-02-01 17:01:46 -07:00
parent 646f85c60e
commit 1cea2130e2

View File

@@ -194,6 +194,7 @@ impl UsbmuxdConnection {
label: impl Into<String>, label: impl Into<String>,
) -> Result<Idevice, IdeviceError> { ) -> Result<Idevice, IdeviceError> {
debug!("Connecting to device {device_id} on port {port}"); debug!("Connecting to device {device_id} on port {port}");
let port = port.to_be();
let mut req = plist::Dictionary::new(); let mut req = plist::Dictionary::new();
req.insert("MessageType".into(), "Connect".into()); req.insert("MessageType".into(), "Connect".into());