Skip to content

Commit

Permalink
fix(shuttle): UDP packet incorrectly truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowee committed Aug 25, 2023
1 parent 7ebf238 commit b49225f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shuttle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "noisy-shuttle"
version = "0.2.1"
version = "0.2.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion shuttle/src/client/plain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ async fn relay_udp_with(
orig_addr
.write_to(&mut Cursor::new(&mut buf[3..3 + addrlen]))
.unwrap();
inbound.send(&buf[..n + addrlen]).await?;
inbound.send(&buf[..3 + n + addrlen]).await?;
rx += n as u64;
}
};
Expand Down

0 comments on commit b49225f

Please sign in to comment.