From 80c3faec58df3243e60575a91bfd3808db3b032b Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Mon, 4 Dec 2023 12:18:59 +0100 Subject: [PATCH] fix exception handling on fw.rs --- src/fw.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fw.rs b/src/fw.rs index d8f41a5..e29dc86 100644 --- a/src/fw.rs +++ b/src/fw.rs @@ -111,7 +111,12 @@ pub fn fwblock( // validate and send batch for b in [batch4, batch6] { let bf = b.finalize(); - send_and_process(&bf).unwrap(); + match send_and_process(&bf) { + Ok(_) => {} + Err(e) => { + println!("error sending batch: {e}"); + } + }; } if fwlen != &mut ips_add.len() { ret.push(format!("{length} ip in firewall", length = ips_add.len()));