fix exception handling on fw.rs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
104d1558b1
commit
80c3faec58
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user