fix exception handling on fw.rs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-12-04 12:18:59 +01:00
parent 104d1558b1
commit 80c3faec58

View File

@ -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()));