Since this commit we could configure path to networks list and whitelist; Closes: 164
This commit is contained in:
parent
caa6d3dcbf
commit
dd2856957a
|
@ -16,6 +16,12 @@ ban_details_records_count = 500
|
|||
# If you set 0 here it completely disables unban capability
|
||||
ban_time = 1900
|
||||
|
||||
# In this file you should list all your networks in CIDR format
|
||||
networks_list_path = /etc/networks_list
|
||||
|
||||
# In this file you could list networks in CIDR format which will be not monitored for attacks
|
||||
white_list_path = /etc/networks_whitelist
|
||||
|
||||
# How often we redraw client's screen
|
||||
check_period = 1
|
||||
|
||||
|
|
|
@ -816,6 +816,14 @@ bool load_configuration_file() {
|
|||
}
|
||||
}
|
||||
|
||||
if (configuration_map.count("white_list_path") != 0) {
|
||||
white_list_path = configuration_map["white_list_path"];
|
||||
}
|
||||
|
||||
if (configuration_map.count("networks_list_path") != 0) {
|
||||
networks_list_path = configuration_map["networks_list_path"];
|
||||
}
|
||||
|
||||
#ifdef REDIS
|
||||
if (configuration_map.count("redis_port") != 0) {
|
||||
redis_port = convert_string_to_integer(configuration_map[ "redis_port" ] );
|
||||
|
|
Loading…
Reference in New Issue