Skip to content

Commit

Permalink
Revert "Fix jkcoxson#36"
Browse files Browse the repository at this point in the history
This reverts commit 1803473.
  • Loading branch information
lance.zhou committed Sep 13, 2024
1 parent 9695b3a commit 1070eeb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/devices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ impl TryFrom<&MuxerDevice> for Plist {
let mut data = [0u8; 152];
match device.network_address.unwrap() {
IpAddr::V4(ip_addr) => {
data[0] = 0x02;
data[1] = 0x00;
data[0] = 10;
data[1] = 0x02;
data[2] = 0x00;
data[3] = 0x00;
let mut i = 4;
Expand All @@ -318,15 +318,14 @@ impl TryFrom<&MuxerDevice> for Plist {
}
}
IpAddr::V6(ip_addr) => {
data[0] = 0x1E;
data[1] = 0x00;
data[0] = 28;
data[1] = 0x1E;
data[2] = 0x00;
data[3] = 0x00;
data[4] = 0x00;
data[5] = 0x00;
data[6] = 0x00;
data[7] = 0x00;
let mut i = 8;
let mut i = 16;
for byte in ip_addr.octets() {
data[i] = byte;
i += 1;
Expand Down

0 comments on commit 1070eeb

Please sign in to comment.