diff --git a/src/http_client.rs b/src/http_client.rs
index 232ba7da..3a66ff86 100644
--- a/src/http_client.rs
+++ b/src/http_client.rs
@@ -1,7 +1,7 @@
use std::{
fmt,
net::{IpAddr, SocketAddr},
- sync::{Arc, LazyLock, Mutex},
+ sync::{Arc, LazyLock, RwLock},
time::Duration,
};
@@ -68,25 +68,33 @@ fn should_block_ip(ip: IpAddr) -> bool {
}
fn should_block_address_regex(domain_or_ip: &str) -> bool {
- static COMPILED_REGEX: Mutex