mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Deprecate Scope::Lookup(), replace with Scope::Find()
This commit is contained in:
parent
a5762c12cc
commit
8f95a2a0bb
27 changed files with 65 additions and 72 deletions
|
@ -368,17 +368,17 @@ void init_ip_addr_anonymizers()
|
|||
ip_anonymizer[PREFIX_PRESERVING_A50] = new AnonymizeIPAddr_A50();
|
||||
ip_anonymizer[PREFIX_PRESERVING_MD5] = new AnonymizeIPAddr_PrefixMD5();
|
||||
|
||||
auto id = global_scope()->Lookup("preserve_orig_addr");
|
||||
auto id = global_scope()->Find("preserve_orig_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_orig_addr = cast_intrusive<TableVal>(id->GetVal());
|
||||
|
||||
id = global_scope()->Lookup("preserve_resp_addr");
|
||||
id = global_scope()->Find("preserve_resp_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_resp_addr = cast_intrusive<TableVal>(id->GetVal());
|
||||
|
||||
id = global_scope()->Lookup("preserve_other_addr");
|
||||
id = global_scope()->Find("preserve_other_addr");
|
||||
|
||||
if ( id )
|
||||
anon_preserve_other_addr = cast_intrusive<TableVal>(id->GetVal());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue