diff --git a/src/config.rs b/src/config.rs index cee78b7..2a9d758 100644 --- a/src/config.rs +++ b/src/config.rs @@ -179,7 +179,7 @@ impl Context { .with_timezone(&chrono::Local); let blocktime = set.blocktime; if ipevent.mode == "file".to_string() && self.hostname == ipevent.hostname { - let mut block = self + let block = self .blocklist .entry(ipevent.ipdata.ip.to_string()) .or_insert(BlockIpData {