We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7c04a commit 03de614Copy full SHA for 03de614
core/src/lib.rs
@@ -92,7 +92,6 @@ pub extern "C" fn ipf_forward(
92
local_port: u16,
93
allow_lan: bool,
94
) -> i8 {
95
- println!("hi");
96
if let Some(rule_id) = get_new_rule_id() {
97
let addr_str = unsafe {
98
match CStr::from_ptr(address_c_string).to_str() {
@@ -119,9 +118,7 @@ pub extern "C" fn ipf_forward(
119
118
{
120
Ok(listener) => loop {
121
if let Ok((mut ingress, _)) = listener.accept().await {
122
- if let Ok(mut egress) =
123
- TcpStream::connect(socket_addr).await
124
- {
+ if let Ok(mut egress) = TcpStream::connect(socket_addr).await {
125
RT.spawn(async move {
126
_ = copy_bidirectional(&mut ingress, &mut egress).await;
127
});
0 commit comments