mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +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
|
@ -414,7 +414,7 @@ void DNS_Mgr::Init()
|
|||
// script-layer option to configure the DNS resolver as it may not be
|
||||
// configured to the user's desired address at the time when we need to to
|
||||
// the lookup.
|
||||
auto dns_resolver = getenv("ZEEK_DNS_RESOLVER");
|
||||
auto dns_resolver = zeekenv("ZEEK_DNS_RESOLVER");
|
||||
auto dns_resolver_addr = dns_resolver ? IPAddr(dns_resolver) : IPAddr();
|
||||
char err[NB_DNS_ERRSIZE];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue