Skip to content

Commit

Permalink
Fix endianess of port
Browse files Browse the repository at this point in the history
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
  • Loading branch information
theduke and syrusakbary committed Jan 15, 2024
1 parent 353cfd7 commit 7c7fb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wasix/src/net/mod.rs
Expand Up @@ -194,7 +194,7 @@ pub(crate) fn write_ip_port<M: MemorySize>(
ip: IpAddr,
port: u16,
) -> Result<(), Errno> {
let p = port.to_ne_bytes();
let p = port.to_le_bytes();
let ipport = match ip {
IpAddr::V4(ip) => {
let o = ip.octets();
Expand Down

0 comments on commit 7c7fb87

Please sign in to comment.