mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38: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
|
@ -177,7 +177,9 @@ void Manager::InitPostScript()
|
|||
|
||||
BrokerConfig config{std::move(options)};
|
||||
|
||||
auto max_threads_env = getenv("BRO_BROKER_MAX_THREADS");
|
||||
auto max_threads_env = getenv("ZEEK_BROKER_MAX_THREADS");
|
||||
if ( ! max_threads_env )
|
||||
max_threads_env = getenv("BRO_BROKER_MAX_THREADS");
|
||||
|
||||
if ( max_threads_env )
|
||||
config.set("scheduler.max-threads", atoi(max_threads_env));
|
||||
|
@ -303,7 +305,9 @@ void Manager::Peer(const string& addr, uint16_t port, double retry)
|
|||
DBG_LOG(DBG_BROKER, "Starting to peer with %s:%" PRIu16,
|
||||
addr.c_str(), port);
|
||||
|
||||
auto e = getenv("BRO_DEFAULT_CONNECT_RETRY");
|
||||
auto e = getenv("ZEEK_DEFAULT_CONNECT_RETRY");
|
||||
if ( ! e )
|
||||
e = getenv("BRO_DEFAULT_CONNECT_RETRY");
|
||||
|
||||
if ( e )
|
||||
retry = atoi(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue