Skip to content

Commit 03de614

Browse files
committed
🔥 remove junk code
1 parent 3c7c04a commit 03de614

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ pub extern "C" fn ipf_forward(
9292
local_port: u16,
9393
allow_lan: bool,
9494
) -> i8 {
95-
println!("hi");
9695
if let Some(rule_id) = get_new_rule_id() {
9796
let addr_str = unsafe {
9897
match CStr::from_ptr(address_c_string).to_str() {
@@ -119,9 +118,7 @@ pub extern "C" fn ipf_forward(
119118
{
120119
Ok(listener) => loop {
121120
if let Ok((mut ingress, _)) = listener.accept().await {
122-
if let Ok(mut egress) =
123-
TcpStream::connect(socket_addr).await
124-
{
121+
if let Ok(mut egress) = TcpStream::connect(socket_addr).await {
125122
RT.spawn(async move {
126123
_ = copy_bidirectional(&mut ingress, &mut egress).await;
127124
});

0 commit comments

Comments
 (0)