mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Rename all BRO-prefixed environment variables
For backward compatibility when reading values, we first check the ZEEK-prefixed value, and if not set, then check the corresponding BRO-prefixed value.
This commit is contained in:
parent
d6096b1618
commit
1a74516db1
105 changed files with 330 additions and 274 deletions
|
@ -444,9 +444,13 @@ bool Ascii::DoHeartbeat(double network_time, double current_time)
|
|||
|
||||
string Ascii::LogExt()
|
||||
{
|
||||
const char* ext = getenv("BRO_LOG_SUFFIX");
|
||||
const char* ext = getenv("ZEEK_LOG_SUFFIX");
|
||||
if ( ! ext )
|
||||
ext = "log";
|
||||
{
|
||||
ext = getenv("BRO_LOG_SUFFIX");
|
||||
if ( ! ext )
|
||||
ext = "log";
|
||||
}
|
||||
|
||||
return ext;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue