fixed: add support for redis_prefix
This commit is contained in:
parent
c9c802936b
commit
0b67b4a81d
|
@ -137,7 +137,7 @@ u_int32_t ndpi_size_id_struct = 0;
|
|||
#ifdef REDIS
|
||||
unsigned int redis_port = 6379;
|
||||
std::string redis_host = "127.0.0.1";
|
||||
std::string redis_prefix = NULL;
|
||||
std::string redis_prefix = "";
|
||||
|
||||
// because it's additional and very specific feature we should disable it by default
|
||||
bool redis_enabled = false;
|
||||
|
@ -1046,7 +1046,7 @@ bool load_configuration_file() {
|
|||
}
|
||||
|
||||
if (configuration_map["redis_prefix"] != "off") {
|
||||
redis_host = configuration_map["redis_prefix"];
|
||||
redis_prefix = configuration_map["redis_prefix"];
|
||||
}
|
||||
|
||||
if (configuration_map.count("redis_enabled") != 0) {
|
||||
|
|
Loading…
Reference in New Issue