updated ipblc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-05-22 08:19:11 +02:00
parent 9a1f4f69dd
commit 93a830d6ae
2 changed files with 4 additions and 5 deletions

View File

@ -47,7 +47,7 @@ Options:
- ✅ Error handing when fetching config - ✅ Error handing when fetching config
- ✅ Local bound tcp api socket - ✅ Local bound tcp api socket
- ✅ ZMQ -> Websocket - ✅ ZMQ -> Websocket
- Bug in RwLocks (agent often give up) - Bug in RwLocks (agent often give up)
### Notes ### Notes

View File

@ -145,12 +145,11 @@ async fn handle_cfg_reload(ctxclone: &Arc<RwLock<Context>>, last_cfg_reload: &mu
} }
async fn handle_fwblock(ctxclone: Arc<RwLock<Context>>, ret: &mut Vec<String>, fwlen: &mut usize) { async fn handle_fwblock(ctxclone: Arc<RwLock<Context>>, ret: &mut Vec<String>, fwlen: &mut usize) {
let toblock; let toblock = {
{
let mut ctx = ctxclone.write().await; let mut ctx = ctxclone.write().await;
ctx.gc_blocklist().await; ctx.gc_blocklist().await;
toblock = ctx.get_blocklist_toblock().await; ctx.get_blocklist_toblock().await
} };
// apply firewall blocking // apply firewall blocking
match fwblock(&toblock, ret, fwlen) { match fwblock(&toblock, ret, fwlen) {