Skip to content

Commit

Permalink
Make forward_traffic module public
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Dec 18, 2024
1 parent 24b2e25 commit a12c617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/forward_traffic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub async fn process_udp_over_tcp(

/// Reads from `tcp_in` and extracts UDP datagrams. Writes the datagrams to `udp_out`.
/// Returns if the TCP socket is closed, or an IO error happens on either socket.
async fn process_tcp2udp(
pub async fn process_tcp2udp(
mut tcp_in: TcpReadHalf,
udp_out: Arc<UdpSocket>,
tcp_recv_timeout: Option<Duration>,
Expand Down Expand Up @@ -132,7 +132,7 @@ fn split_first_datagram(buffer: &[u8]) -> Option<(&[u8], &[u8])> {

/// Reads datagrams from `udp_in` and writes them (with the 16 bit header containing the length)
/// to `tcp_out` indefinitely, or until an IO error happens on either socket.
async fn process_udp2tcp(
pub async fn process_udp2tcp(
udp_in: Arc<UdpSocket>,
mut tcp_out: TcpWriteHalf,
) -> Result<Infallible, Box<dyn std::error::Error>> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub mod udp2tcp;
pub use udp2tcp::Udp2Tcp;

mod exponential_backoff;
mod forward_traffic;
pub mod forward_traffic;
mod logging;
mod tcp_options;

Expand Down

0 comments on commit a12c617

Please sign in to comment.