mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Only allow a single trace file (-r) or interface (-i) option on the command-line
This commit is contained in:
parent
2b2121be60
commit
f16f0360ff
17 changed files with 93 additions and 141 deletions
|
@ -1284,7 +1284,7 @@ void Supervisor::SupervisedNode::Init(zeek::Options* options) const
|
|||
options->filter_supervised_node_options();
|
||||
|
||||
if ( config.interface )
|
||||
options->interfaces.emplace_back(*config.interface);
|
||||
options->interface = *config.interface;
|
||||
|
||||
for ( const auto& s : config.scripts )
|
||||
options->scripts_to_load.emplace_back(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue