Deprecate zeekenv() and use getenv() directly

This commit is contained in:
Jon Siwek 2021-01-29 16:52:02 -08:00
parent 79f9979f80
commit b8c563dbdd
11 changed files with 24 additions and 45 deletions

View file

@ -409,7 +409,7 @@ void DNS_Mgr::InitSource()
// 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 = util::zeekenv("ZEEK_DNS_RESOLVER");
auto dns_resolver = getenv("ZEEK_DNS_RESOLVER");
auto dns_resolver_addr = dns_resolver ? IPAddr(dns_resolver) : IPAddr();
char err[NB_DNS_ERRSIZE];