mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-04 02:16:46 +00:00
chore: hostname can be 253 characters maximum
Signed-off-by: Adrián Arroyo Calle <adrian.arroyocalle@gmail.com>
This commit is contained in:
parent
52fbcefa1d
commit
137e7fc0ec
@ -146,7 +146,7 @@ void falco_outputs::handle_event(gen_event *ev, string &rule, string &source,
|
||||
|
||||
std::lock_guard<std::mutex> guard(m_ls_semaphore);
|
||||
lua_getglobal(m_ls, m_lua_output_event.c_str());
|
||||
char hostname[1024];
|
||||
char hostname[256];
|
||||
char* env_hostname = getenv("FALCO_GRPC_HOSTNAME");
|
||||
if(env_hostname == NULL){
|
||||
int err = gethostname(hostname, sizeof(hostname));
|
||||
|
Loading…
Reference in New Issue
Block a user