fixed mutable variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-05-07 02:28:27 +02:00
parent ccb3b4fff0
commit df9d19f616

View File

@ -179,7 +179,7 @@ impl Context {
.with_timezone(&chrono::Local); .with_timezone(&chrono::Local);
let blocktime = set.blocktime; let blocktime = set.blocktime;
if ipevent.mode == "file".to_string() && self.hostname == ipevent.hostname { if ipevent.mode == "file".to_string() && self.hostname == ipevent.hostname {
let mut block = self let block = self
.blocklist .blocklist
.entry(ipevent.ipdata.ip.to_string()) .entry(ipevent.ipdata.ip.to_string())
.or_insert(BlockIpData { .or_insert(BlockIpData {