fixed mutable variable
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
ccb3b4fff0
commit
df9d19f616
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user