mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-06-08 20:56:07 +02:00
Move ban_time to configuration file
This commit is contained in:
parent
e208c5e1fb
commit
fadd343985
|
@ -1,3 +1,4 @@
|
|||
ban_time = 1900
|
||||
ban_for_pps = on
|
||||
ban_for_bandwidth = on
|
||||
ban_for_flows = off
|
||||
|
|
|
@ -724,6 +724,10 @@ bool load_configuration_file() {
|
|||
configuration_map[ parsed_config[0] ] = parsed_config[1];
|
||||
}
|
||||
|
||||
if (configuration_map.count("ban_time") != 0) {
|
||||
standard_ban_time = convert_string_to_integer(configuration_map["ban_time"]);
|
||||
}
|
||||
|
||||
if (configuration_map.count("average_calculation_time") != 0) {
|
||||
average_calculation_amount = convert_string_to_integer(configuration_map["average_calculation_time"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue