update: grpc server disabled by default

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2019-09-16 10:16:46 +00:00
committed by Leo Di Donato
parent 6800fe2ec6
commit f7c19517de
2 changed files with 2 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ http_output:
url: http://some.url
grpc:
enabled: true
enabled: false
bind_address: "0.0.0.0:5060"
threadiness: 8
private_key: ""

View File

@@ -159,9 +159,8 @@ void falco_configuration::init(string conf_filename, list<string> &cmdline_optio
falco_outputs::output_config grpc_output;
grpc_output.name = "grpc";
// gRPC output is enabled only if gRPC server is enabled too
if(m_config->get_scalar<bool>("grpc_output", "enabled", false) && m_grpc_enabled)
if(m_config->get_scalar<bool>("grpc_output", "enabled", true) && m_grpc_enabled)
{
// todo >
m_outputs.push_back(grpc_output);
}