Fix backwards IPv4 addresses
This commit is contained in:
parent
8bdccc1f18
commit
a81830cd20
1 changed files with 7 additions and 1 deletions
|
|
@ -11,7 +11,13 @@ impl<'a> Ipv4Config<'a> {
|
||||||
let addresses = self.0.addresses().await?;
|
let addresses = self.0.addresses().await?;
|
||||||
Ok(addresses
|
Ok(addresses
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|addresses| addresses.into_iter().map(Ipv4Addr::from).collect())
|
.map(|addresses| {
|
||||||
|
addresses
|
||||||
|
.into_iter()
|
||||||
|
.map(|addr| addr.swap_bytes())
|
||||||
|
.map(Ipv4Addr::from)
|
||||||
|
.collect()
|
||||||
|
})
|
||||||
.collect())
|
.collect())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue