Skip to content

Commit a12c617

Browse files
committed
Make forward_traffic module public
1 parent 24b2e25 commit a12c617

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/forward_traffic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub async fn process_udp_over_tcp(
5454

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

133133
/// Reads datagrams from `udp_in` and writes them (with the 16 bit header containing the length)
134134
/// to `tcp_out` indefinitely, or until an IO error happens on either socket.
135-
async fn process_udp2tcp(
135+
pub async fn process_udp2tcp(
136136
udp_in: Arc<UdpSocket>,
137137
mut tcp_out: TcpWriteHalf,
138138
) -> Result<Infallible, Box<dyn std::error::Error>> {

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub mod udp2tcp;
8787
pub use udp2tcp::Udp2Tcp;
8888

8989
mod exponential_backoff;
90-
mod forward_traffic;
90+
pub mod forward_traffic;
9191
mod logging;
9292
mod tcp_options;
9393

0 commit comments

Comments
 (0)