From b304a38ee5257dca627eb8b8f7ad82e209fed6d5 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Tue, 12 Dec 2023 05:00:07 +0530 Subject: [PATCH] debug: dns proxy --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0da4264..97d6d9a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,6 +67,7 @@ fn main() { } } + println!("{:?}", upstream_packets); recv_packet.answers = upstream_packets .into_iter() .filter(|x| x.is_some()) @@ -75,11 +76,12 @@ fn main() { if packet.answers.is_empty() { return None; } - Some(packet.answers[0].clone()) + Some(packet.answers.clone()) } else { None } }) + .flatten() .collect(); let mut response = vec![];