mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
GH-158: Ensure packet-filter framework is loaded if -f option is passed
This commit is contained in:
parent
4a95d151df
commit
a3d7284d5e
1 changed files with 3 additions and 0 deletions
|
@ -566,6 +566,9 @@ zeek::detail::SetupResult setup(int argc, char** argv,
|
|||
for ( const auto& script : options.scripts_to_load )
|
||||
add_input_file(script.data());
|
||||
|
||||
if ( options.pcap_filter )
|
||||
add_input_file("base/frameworks/packet-filter/main.zeek");
|
||||
|
||||
push_scope(nullptr, nullptr);
|
||||
|
||||
zeek::detail::dns_mgr = new zeek::detail::DNS_Mgr(dns_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue