mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Add an internal getenv wrapper function: zeekenv
It maps newer environment variable names starting with ZEEK to the legacy names starting with BRO.
This commit is contained in:
parent
580822a32c
commit
7f0fb49612
14 changed files with 82 additions and 81 deletions
|
@ -64,7 +64,7 @@ Manager::Manager(const string& arg_config, const string& bro_command)
|
|||
identifiers(), all_info(), last_identifier_seen(), incomplete_type(),
|
||||
enum_mappings(), config(arg_config), bro_mtime()
|
||||
{
|
||||
if ( getenv("ZEEK_DISABLE_ZEEKYGEN") || getenv("BRO_DISABLE_BROXYGEN") )
|
||||
if ( zeekenv("ZEEK_DISABLE_ZEEKYGEN") )
|
||||
disabled = true;
|
||||
|
||||
// If running bro without the "-X" option, then we don't need bro_mtime.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue